1.1.8 • Published 10 months ago
@nielse63/generate-tests v1.1.8
@nielse63/generate-tests
Automatically generate jest specs for uncovered source files
Installation
npm -g i @nielse63/generate-tests
Usage
CLI
$ generate-tests --help
Usage: generate-tests [options] <glob>
Automatically generate jest specs for uncovered source files
Arguments:
glob Glob pattern of source files
Options:
-D, --cwd Current working directory
-V, --version output the version number
-h, --help display help for command
API
import generateTests from '@nielse63/generate-tests';
const results = await generateTests({
cwd: '/path/to/project',
glob: '**/src/**.{js,ts}',
});
// results:
// [
// {
// file: 'src/file.js',
// abspath: '/path/to/project/src/file.js',
// testpath: '/path/to/project/src/__tests__/file.spec.js',
// basename: 'file.js',
// classname: 'file'
// }
// ]
1.1.8
10 months ago
1.1.7
10 months ago
1.1.6
10 months ago
1.1.5
10 months ago
1.1.4
10 months ago
1.1.3
10 months ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.1
2 years ago
1.0.0-alpha.1
2 years ago
1.0.6
2 years ago
0.0.4-alpha.0
2 years ago
0.0.4
2 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago