-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Comparing changes
Open a pull request
base repository: avajs/ava
base: e401bd151b1a81f79ccb106f034b2e18715ee125
head repository: avajs/ava
compare: b4cfc8dd9b74a0899a1186b749c380da01245985
Commits on Nov 28, 2017
-
Update npm, test Node.js 9, detect package-lock churn in CI (#1601)
* Use npm@5.6.0 in CI * Detect package-lock.json churn during CI * Add Node.js 9 to CI matrix * Used npx to run codecov
Configuration menu - View commit details
-
Copy full SHA for 4124d77 - Browse repository at this point
Copy the full SHA 4124d77View commit details
Commits on Dec 17, 2017
-
Use supertap to generate TAP output (#1610)
Vadim Demedes authoredDec 17, 2017 Configuration menu - View commit details
-
Copy full SHA for 965cbc6 - Browse repository at this point
Copy the full SHA 965cbc6View commit details
Commits on Dec 28, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 4e8f827 - Browse repository at this point
Copy the full SHA 4e8f827View commit details
Commits on Jan 3, 2018
-
Configuration menu - View commit details
-
Copy full SHA for c1faf95 - Browse repository at this point
Copy the full SHA c1faf95View commit details
Commits on Jan 8, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 29e5dfd - Browse repository at this point
Copy the full SHA 29e5dfdView commit details -
* support @std/esm * fix path test for windows * fix linter error * Stricter regex. Use shorthand .esmrc file in fixture. * update package-lock.json
2Configuration menu - View commit details
-
Copy full SHA for 72c53be - Browse repository at this point
Copy the full SHA 72c53beView commit details
Commits on Jan 16, 2018
-
Configuration menu - View commit details
-
Copy full SHA for aaddc37 - Browse repository at this point
Copy the full SHA aaddc37View commit details
Commits on Jan 17, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 4a13966 - Browse repository at this point
Copy the full SHA 4a13966View commit details
Commits on Jan 20, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 947f207 - Browse repository at this point
Copy the full SHA 947f207View commit details
Commits on Jan 21, 2018
-
Configuration menu - View commit details
-
Copy full SHA for cd8c91b - Browse repository at this point
Copy the full SHA cd8c91bView commit details
Commits on Jan 22, 2018
-
Recommend skipFiles for VSCode debugging
VSCode steps into native code at each `await` statement. using skipFiles on node_internals yields a more dev-expected debug experience.
Configuration menu - View commit details
-
Copy full SHA for bcb77fc - Browse repository at this point
Copy the full SHA bcb77fcView commit details
Commits on Jan 24, 2018
-
Configuration menu - View commit details
-
Copy full SHA for c2b42ec - Browse repository at this point
Copy the full SHA c2b42ecView commit details
Commits on Jan 25, 2018
-
Configuration menu - View commit details
-
Copy full SHA for f00f3c4 - Browse repository at this point
Copy the full SHA f00f3c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f896c2 - Browse repository at this point
Copy the full SHA 4f896c2View commit details
Commits on Jan 26, 2018
-
Configuration menu - View commit details
-
Copy full SHA for a051d3e - Browse repository at this point
Copy the full SHA a051d3eView commit details
Commits on Jan 27, 2018
-
Babel 7 support and additional enhancements
Fixes #1598. Switches AVA's Babel implementation to use Babel 7. This applies to test and helper file compilation. Adds a `compileEnhancements` option which can be set to `false` to disable Power Assert and our `t.throws()` helper. Changes the Babel configuration. If you had this before: ```json "ava": { "babel": { "plugins": [] } } ``` You'll now need: ```json "ava": { "babel": { "testOptions": { "plugins": [] } } } ``` `ava.babel.testOptions.babelrc` now defaults to `true`. You can disable our stage-4 preset by adding `["ava/stage-4", false]` to `ava.babel.testOptions.presets`. Set `ava.babel` to `false` to disable AVA's test file compilation, **whilst still compiling enhancements**. If `compileEnhancements` is *also* set to `false` then Babel is skipped completely. Fixes #1225, #1488 and #1556.
Configuration menu - View commit details
-
Copy full SHA for b33cb1d - Browse repository at this point
Copy the full SHA b33cb1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e54c17 - Browse repository at this point
Copy the full SHA 2e54c17View commit details -
Configuration menu - View commit details
-
Copy full SHA for 74cd934 - Browse repository at this point
Copy the full SHA 74cd934View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7be7fe8 - Browse repository at this point
Copy the full SHA 7be7fe8View commit details
Commits on Jan 29, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 40604ee - Browse repository at this point
Copy the full SHA 40604eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for fe7a8a1 - Browse repository at this point
Copy the full SHA fe7a8a1View commit details -
* Remove 'ava --init foo.js' example * Stop --init, --watch and --update-snapshots from being configured in package.json * Declare flags in a more useful order * Remove --require error * Simplify custom flag validation * Rename 'source' option to 'sources'
Configuration menu - View commit details
-
Copy full SHA for b6fa8b9 - Browse repository at this point
Copy the full SHA b6fa8b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for a84c96f - Browse repository at this point
Copy the full SHA a84c96fView commit details -
Always load syntax plugins, the preset does not necessarily load them if the environment supports the language feature natively. The syntax plugins can be removed once Babel can parse the syntax unaided.
Configuration menu - View commit details
-
Copy full SHA for 18b09b2 - Browse repository at this point
Copy the full SHA 18b09b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50b0b4e - Browse repository at this point
Copy the full SHA 50b0b4eView commit details
Commits on Jan 30, 2018
-
Load compiled helpers if in the "require" configuration
AVA now installs its source map support and precompiler hook *before* processing the "require" paths. This means that helpers can safely be added to the "require" configuration and their compiled versions will be loaded. Fixes #1506.
Configuration menu - View commit details
-
Copy full SHA for 56b56c1 - Browse repository at this point
Copy the full SHA 56b56c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8364ca - Browse repository at this point
Copy the full SHA b8364caView commit details -
Configuration menu - View commit details
-
Copy full SHA for d42865b - Browse repository at this point
Copy the full SHA d42865bView commit details
Commits on Jan 31, 2018
-
Ensure profile.js skips test file compilation like regular runs
Read the 'compileEnhancements' option from package.json and guard against the Babel config helper not returning any config.
Configuration menu - View commit details
-
Copy full SHA for 1de3657 - Browse repository at this point
Copy the full SHA 1de3657View commit details -
Configuration menu - View commit details
-
Copy full SHA for aafe225 - Browse repository at this point
Copy the full SHA aafe225View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d60d5d - Browse repository at this point
Copy the full SHA 4d60d5dView commit details
Commits on Feb 1, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 47b8b56 - Browse repository at this point
Copy the full SHA 47b8b56View commit details
Commits on Feb 4, 2018
-
Configuration menu - View commit details
-
Copy full SHA for a28c896 - Browse repository at this point
Copy the full SHA a28c896View commit details -
Restrict test modifier chaining
Explicitly specify allowable chains, with some ground rules in mind: Test chaining rules: * `serial` must come at the start * `only` and `skip` must come at the end * `failing` must come at the end, but can be followed by `only` and `skip` * `only` and `skip` cannot be chained together * no repeating Hook chaining rules: * `always` comes immediately after "after hooks" * `skip` must come at the end * no `only` * no repeating Additionally: * `todo` cannot be chained, except after `serial` * hooks are not available on `serial` This commit also removes now unnecessary assertions from TestCollection. Fixes #1182.
Configuration menu - View commit details
-
Copy full SHA for 7c0bf9b - Browse repository at this point
Copy the full SHA 7c0bf9bView commit details -
Refactor TypeScript definition
Remove the need for a build step. Update the `throws` and `notThrows` assertions, adding `Observable` and allowing the returned error to be typed. Remove the inline documentation, to be added later. Simplify typing of `t.context`. Reassigning the `test` method along with a type cast is now sufficient. Update to TypeScript 2.7.1.
Configuration menu - View commit details
-
Copy full SHA for bac3c11 - Browse repository at this point
Copy the full SHA bac3c11View commit details -
Minor syntactical changes aside, it's now equivalent to the TypeScript definition!
Configuration menu - View commit details
-
Copy full SHA for b2954a8 - Browse repository at this point
Copy the full SHA b2954a8View commit details
Commits on Feb 6, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 73baf70 - Browse repository at this point
Copy the full SHA 73baf70View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51a0ff0 - Browse repository at this point
Copy the full SHA 51a0ff0View commit details
Commits on Feb 11, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 705b787 - Browse repository at this point
Copy the full SHA 705b787View commit details -
Remove indirection by inlining code. It's not the prettiest without async-await but it's easier to follow. Remove unnecessary auto-binding of methods. There's no need to "get" blank results either when running a test files fails. Handle timeouts within a test run, without touching the `runStatus` object. Restart the timeout timer whenever a new "fork" is created. This gives new test files the chance to start running tests. Don't start the timer *before* running any tests. Fixes #1377. Clean up "fork" instances when test files exit. Set up a new precompiler on every test run. Don't store it on the `Api` instance. If caching is enabled, fix the caching directory relative to the project directory, without looking it up again. Compile all test and helpers files before running any test. This doesn't improve time-to-first-test but it does mean that test files can depend on each other. AVA will correctly load the precompiled file. No tests are run if any file fails to compile. Pass the real path to the precompiler. Compute `execArgv` when a test file is run, not all at once for all files.
Configuration menu - View commit details
-
Copy full SHA for 82f4083 - Browse repository at this point
Copy the full SHA 82f4083View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c8baff - Browse repository at this point
Copy the full SHA 5c8baffView commit details -
Don't run new test files after: * A timeout has occurred * A test has failed * Running the test file itself caused an error Refs #1158.
Configuration menu - View commit details
-
Copy full SHA for f83f8c0 - Browse repository at this point
Copy the full SHA f83f8c0View commit details -
Access worker options through dedicated module
This module is necessary since there may be circular dependencies originating in test-worker.js. Make setting and getting the options explicit, prevent options from being replaced and require them to be set. This will help catch any future issues caused by changing the dependency tree.
Configuration menu - View commit details
-
Copy full SHA for 1f4d503 - Browse repository at this point
Copy the full SHA 1f4d503View commit details -
Replace lib/globals.js by a module which focuses on reexporting Node.js' timers and Date.now(). Remove workarounds from profile.js, presuming they're outdated and don't apply to methods from Node.js' `timers` module.
Configuration menu - View commit details
-
Copy full SHA for da9bb0a - Browse repository at this point
Copy the full SHA da9bb0aView commit details -
Consistent output for rejections/exceptions in mini and verbose repor…
…ters * Make error type more readable * Always include originating test file * Indent error summary, allowing for multi-line summaries * Correctly handle non-errors in verbose reporter
Configuration menu - View commit details
-
Copy full SHA for 039b646 - Browse repository at this point
Copy the full SHA 039b646View commit details -
Special serialization logic for SyntaxErrors
SyntaxError stacks may begin with the offending code. Include all stack lines up to and including one that begins with SyntaxError.
Configuration menu - View commit details
-
Copy full SHA for 019f037 - Browse repository at this point
Copy the full SHA 019f037View commit details -
Move logic from lib/main.js to lib/test-worker.js
This focuses lib/main.js on creating and exporting the runner, while the worker focuses on managing IPC, catching errors, and doing generally doing the work. The worker now guards against repeatedly sending stats, or sending test results after it's started to exit. Required and test files are loaded at the end, after handlers for uncaught exceptions and unhandled rejections have been installed.
Configuration menu - View commit details
-
Copy full SHA for d4d60db - Browse repository at this point
Copy the full SHA d4d60dbView commit details -
Clean up collecting and running tests
Test runners will now run tests as soon as (in the next tick) they're declared. The main process no longer instructs the workers to start running tests. Various IPC commands had to be changed to ensure we can still detect whether "ava" is loaded, or whether a test file contains no actual tests. Fixes #1674.
Configuration menu - View commit details
-
Copy full SHA for 7762ea2 - Browse repository at this point
Copy the full SHA 7762ea2View commit details -
Keep IPC channel referenced once it's needed again
Ensure the IPC channel stays referenced. This is a safe-guard: it's easy to end up in a situation where the channel needs to be referenced but it's unreferenced because other code wasn't aware.
Configuration menu - View commit details
-
Copy full SHA for 6128625 - Browse repository at this point
Copy the full SHA 6128625View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2153497 - Browse repository at this point
Copy the full SHA 2153497View commit details
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.