Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/avajs/atom-ava

Snippets for AVA and run tests directly in the editor
https://github.com/avajs/atom-ava

atom atom-editor ava snippets

Last synced: about 2 months ago
JSON representation

Snippets for AVA and run tests directly in the editor

Awesome Lists containing this project

README

        

# AVA [![Build Status](https://travis-ci.org/avajs/atom-ava.svg?branch=master)](https://travis-ci.org/avajs/atom-ava)

> Snippets for [AVA](https://ava.li) and run tests directly in the editor

## Install

```
$ apm install ava
```

Or, Settings → Install → Search for `ava`

## Snippets

Included are some [snippets](snippets/ava.json) useful for writing AVA tests.

Start writing a snippet's `prefix` and then press Tab ↹ to expand the snippet.

Snippets are fuzzy matched, so you can for example just write `tde` to get the `t.deepEqual()` snippet.

## Run tests directly in the editor

In a project, choose the `Ava: Run` command in the Command Palette or press Ctrl Alt A to run the tests. Choose `Ava: Run File` or press Ctrl Alt Shift A to only run the current test file. Press Esc to close the AVA panel.

## Related

- [Sublime plugin](https://github.com/avajs/sublime-ava)
- [VS Code plugin](https://github.com/samverschueren/vscode-ava)
- [Standard style version of this plugin](https://github.com/capaj/atom-ava-standard)

## License

MIT © [Sindre Sorhus](https://sindresorhus.com)