Comments (3)
The thinking is that you should only write your tests in ES2015. It's time. We finally have a good transpiler (Babel). You can of course write your tests in ES5, but I want to optimize for the future, not the past. Providing this out of the box without requiring the user to do anything is one of the things that is going to set AVA apart.
I agree Babel is a large dependency, but that's less of an issue for devDependencies. I'm also going to work on getting down the size of the Babel package. Help welcome there ;)
I see that the Babel package currently includes a lot of junk you don't need in Node. The package is 13.6 MB. I think with some tweaks we could get it down many MBs. Removing browser specific stuff brings it down to 9.8 MB (Maybe Babel should have a Node specific package without those?). There's also some potential for better deduping. I'll open a Babel issue about that when I have some more time to look into it.
from ava.
Actually yes, maybe you have right and it looks that installing it one time globally is the way. But I think it's not cool, when someone want to do PR and must install it (if he dont use ava).
Another side is that: iojs have fast release cycle, more and more of the cool features comes in and we all dont need transpilier for most of the things. And if someone want to use ES6 he can use it without transpilier and that required dependency can be more than what he want/use from ES>=6
Maybe Babel should have a Node specific package without those?
👍
from ava.
Babel 6 is out and it's smaller, and it will be even smaller with https://github.com/babel/babel/pull/2659/files and babel/babel#2635. Closing this, but I'm going to continue working on bringing down the dependency size.
from ava.
Related Issues (20)
- test.sequential for tests that rely on the sequence
- ava + dynamic tests + sinon.useFakeTimers have weird behaviour - tests fail with no clear error HOT 1
- npx ava -r dotenv-flow/config not working
- AVA hangs after all tests pass HOT 2
- Support a proper junit reporter
- Monorepo with babel aliases support HOT 1
- The watch mode does not work in v6 HOT 4
- Ability to run a mixed test code base using node:test HOT 2
- Azure DevOps output handler
- Typescript with VS Code debug issue
- config to control handling for tests that 'Failed to exit' - v6+ issue HOT 3
- Ava fails to run in watch mode via CLI HOT 2
- Documentation Request: Using a Node Custom Loader
- Add support for `--env-file=` flag for node 20 in `nodeArguments`
- Spurious "previous failures in test files that were not rerun" in watch mode HOT 2
- registerCompletionHandler can't be used in CommonJS project HOT 1
- Allow regexes in `t.like` HOT 2
- failing async test ends in timeout instead of go to catch clause
- `t.throws` doesn't recognize falsy thrown values
- `t.inRange`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ava.