Mark Wubben
affbb45744
Fail tests that finish with pending assertions
`t.throws()` and `t.notThrows()` can be called with an observable or
promise. This commit forces users to wait for the assertion to complete
before finishing the test. Usually this means the test has to be written
like:
```js
test(async t => {
await t.throws(Promise.reject(new Error()))
})
```
Or for callback tests:
```js
test.cb(t => {
t.throws(Promise.reject(new Error())).then(t.end)
})
```
This simplifies internal logic and helps discourage code like in #1327 .
Anecdotally users are surprised by the previous behavior where a
synchronous test worked with an asynchronous assertion
(https://github.com/avajs/ava/issues/1327#issuecomment-291122432 ).
Fixes #1327 .
8 years ago
Mark Wubben
22832473c4
Document --color CLI flag
8 years ago
Daniel Tschinder
f23c17d02b
Remove mention of stage-2 in readme ( #1325 )
8 years ago
Mark Wubben
3a4553cf28
Fail tests that finish without running assertions
8 years ago
Klaus Sinani
1be456d103
Readme: Team-table minor fix ( #1308 )
8 years ago
mmkal
50ad21372c
Make test context optionally type aware for TypeScript ( #1298 )
8 years ago
Danny Andrews
a49f66b59f
Add recipe for precompiling source files with webpack ( #1212 )
8 years ago
Wp1987
767c3f8e2c
Readme tweak ( #1282 )
8 years ago
Mark Wubben
d47c5c80ae
Document that deepEqual() uses lodash.isequal
8 years ago
Thomas Bembridge
5c4c2707a9
Added support for --no-color flag in verbose and mini reporters ( #1198 )
8 years ago
Sindre Sorhus
b886c5b25a
Add Flow and TS type definitions to "Why AVA?"
8 years ago
Sindre Sorhus
a45cdb9eb7
Mention magic assert in the readme
And some other tweaks
8 years ago
Alessio Occhipinti
34bebc450d
Removed `--source` CLI flag ( #1215 )
Fixes #937
8 years ago
Sindre Sorhus
872d2edb93
Various minor tweaks
8 years ago
Mark Wubben
ad5122d507
Use new Babel presets
Fixes #1193 , #1195 .
Closes #947 and #1089 , since babel-runtime is removed.
8 years ago
Vadim Demedes
410cb8d3b1
Precompile helpers ( #1078 )
8 years ago
Vadim Demedes
0f0400158e
Add AVA Casts to readme ( #1142 )
8 years ago
Andreas Offenhäuser
fb57cff86e
Update expected package.json version in readme ( #1133 )
8 years ago
Sindre Sorhus
262911f02b
ES2015ify #1113
8 years ago
Anna Doubkova
ee65b6dbbb
Add snapshot assertion ( #1113 )
8 years ago
Sam Verschueren
09bf88a1e0
Fix vadimdemedes github link ( #1140 )
8 years ago
Andreas Offenhäuser
63e68fa278
Recommend Yarn for installation ( #1130 )
8 years ago
Sindre Sorhus
1caefe1634
improve `t.throws` & `t.notThrows` docs
fixes #1120
8 years ago
Shahar Or
c39b9dc5ba
docs: recipe to debug with DevTools ( #1115 )
closes #1117
8 years ago
Shahar Or
bee4a5918c
Readme: explain how to debug ( fixes #1112 ) ( #1116 )
8 years ago
Gurpreet Atwal
2d047635e0
Add docs for test parameter need to be named `t` ( #1096 )
8 years ago
Sindre Sorhus
3c3a6d8b7a
add XO badge
8 years ago
Martin Grünbaum
476c653961
Change the current working directory of tests to be the same directory as package.json ( #1074 )
#32
8 years ago
Martin Grünbaum
e10338ebf1
Update readme.md ( #1075 )
Clarify that context is initialized anew for each test.
8 years ago
Jacob Kahn
17119bcfd8
Remove --require CLI option ( #1070 )
Fixes #1069 .
8 years ago
Sindre Sorhus
40cbfb668c
highlights - Automatic migration from other test runners
Thanks @skovhus ! :)
8 years ago
Jeroen Engels
2555461639
Do not say that `t` is the only argument of a test
8 years ago
Jeroen Engels
24a38acc5b
Add option to disable power-assert - fixes #1017 ( #1024 )
8 years ago
Zeke Sikelianos
f038f8d197
fix typo ( #1015 )
Watch -> Match
8 years ago
Ekaterina Prigara
30ab26f449
WebStorm recipe ( #1009 )
8 years ago
Sindre Sorhus
a4d0e817e7
remove misleading screenshot in the readme
That's no longer the default output, but rather the verbose one.
Fixes #1006
8 years ago
Sindre Sorhus
adc823ecc9
📢 Delighted to welcome @jfmengels to the team! 🎉
8 years ago
Juan Soto
1c6abe02e9
Update Juan Soto link
8 years ago
Sindre Sorhus
05f1890eb7
add Dependency CI badge
Not very useful, but want to promote Dependency CI because it's awesome.
8 years ago
Sindre Sorhus
7440ac9d03
minor readme tweaks
8 years ago
Andrey Ringbauer
b54eafa3dd
add new reporters section in the readme ( #955 )
8 years ago
fluffywaffles
c3539c1701
JSPM and SystemJS recipe.
<!--
Read the [contributing guidelines](https://github.com/avajs/ava/blob/master/contributing.md ). We are excited about pull requests, but please try to limit the scope, provide a general description of the changes, and remember, it's up to you to convince us to land it. If this fixes an open issue, link to it in the following way: `Fixes #321`. New features and bug fixes should come with tests.
-->
A recipe for using AVA with JSPM, per discussion on #131 . It requires the import of an external library I wrote for the purpose of encapsulating the loader shim so it can be maintained and updated. Here's a link to that library: [ava-jspm-loader](https://github.com/skorlir/ava-jspm-loader ).
Closes #941
8 years ago
Juan
187b8b49b0
Document common pitfalls ( #919 )
8 years ago
Arve Seljebu
9efcee0940
readme: add note about uncaught exceptions ( #918 )
fixes issue #917
8 years ago
Sindre Sorhus
6fd817c250
clarify readme example on adding AVA to package.json
fixes #922
8 years ago
forresst
402a7d5978
Add link to Typescript recipe ( #906 )
8 years ago
James Talmage
43103f8681
Add concurrency to package.json config in readme.
8 years ago
Sindre Sorhus
60890c490b
switch to AVA AppVeyor account
9 years ago
James Talmage
c7402023d6
add t.notRegex ( #879 )
* add t.notRegex
Fixes #877
* add notRegex to power-assert patterns
9 years ago
James Talmage
77b55e57ae
Move images to media folder.
It's a good time to do it since we are cutting a release, so npm will get the updated URL's shortly.
[skip ci]
9 years ago