Files
CanvasTextWrapper/node_modules/grunt-contrib-nodeunit/docs/nodeunit-examples.md
T
namniak 6ddb18a127 v0.1.0
2014-06-27 00:31:51 -04:00

25 lines
514 B
Markdown

# Usage examples
## Wildcards
In this example, `grunt nodeunit:all` or `grunt nodeunit` will test all files ending with `_test.js` in the `test` directory.
```js
// Project configuration.
grunt.initConfig({
nodeunit: {
all: ['test/*_test.js']
}
});
```
With a slight modification, `grunt nodeunit:all` will test files matching the same pattern in the `test` directory _and all subdirectories_.
```js
// Project configuration.
grunt.initConfig({
nodeunit: {
all: ['test/**/*_test.js']
}
});
```