Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/01-writing-tests.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Writing tests

Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/01-writing-tests.md)

Tests are run concurrently. You can specify synchronous and asynchronous tests. Tests are considered synchronous unless you return a promise, an [observable](https://github.com/zenparsing/zen-observable), or declare it as a callback test.

You must define all tests synchronously. They can't be defined inside `setTimeout`, `setImmediate`, etc.
Expand Down
2 changes: 2 additions & 0 deletions docs/02-execution-context.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Execution Context (`t` argument)

Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/02-execution-context.md)

Each test or hook is called with an execution context. By convention it's named `t`.

```js
Expand Down
2 changes: 2 additions & 0 deletions docs/03-assertions.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Assertions

Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/03-assertions.md)

Assertions are mixed into the [execution object](./02-execution-context.md) provided to each test implementation:

```js
Expand Down
2 changes: 2 additions & 0 deletions docs/04-snapshot-testing.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Snapshot testing

Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/04-snapshot-testing.md)

AVA supports snapshot testing, [as introduced by Jest](https://facebook.github.io/jest/docs/snapshot-testing.html), through its [Assertions](./03-assertions.md) interface. You can snapshot any value as well as React elements:

```js
Expand Down
2 changes: 2 additions & 0 deletions docs/05-command-line.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# CLI

Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/05-command-line.md)

```console
$ npx ava --help

Expand Down
2 changes: 2 additions & 0 deletions docs/06-configuration.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Configuration

Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/06-configuration.md)

All of the [CLI options](./05-command-line.md) can be configured in the `ava` section of either your `package.json` file, or an `ava.config.js` file. This allows you to modify the default behavior of the `ava` command, so you don't have to repeatedly type the same options on the command prompt.

To ignore a file or directory, prefix the pattern with an `!` (exclamation mark).
Expand Down
2 changes: 2 additions & 0 deletions docs/07-test-timeouts.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Test timeouts

Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/07-test-timeouts.md)

Timeouts in AVA behave differently than in other test frameworks. AVA resets a timer after each test, forcing tests to quit if no new test results were received within the specified timeout. This can be used to handle stalled tests.

You can configure timeouts using the `--timeout` [command line option](./05-command-line.md), or in the [configuration](./06-configuration.md).
Expand Down
2 changes: 1 addition & 1 deletion docs/08-common-pitfalls.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Common Pitfalls

Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/common-pitfalls.md)
Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/08-common-pitfalls.md)

## ESLint plugin

Expand Down