0.1.23 • Published 5 years ago
test-my-ride v0.1.23
test-my-ride
Creates a test file next to the passed filename, mocks all imports and creates describe block per function with correct mocks inserted
Installation
npm install -g test-my-ride
Usage example
test-my-ride src/path/to/file.js --function functionName --config path/to/config/file.json
Run this from terminal. Will create a src/path/to/file.test-my-ride.js
file.
Currently used for boiler plate test file generation.
Config structure:
{
"prettier": {
"semi": true,
"singleQuote": true
},
"outputPostfix": ".test-jam"
}
The settings for prettier are overridable and docco is here
outputPostfix
overrides the default .test-my-ride
postfix to the test file.
The following values are not overridable:
parser: 'babel',
plugins: [prettierBabylon]
Stuff coming soon:
- handle require/resquire.default/require.names/import * as
- handle root config file for local installs
- updated function wrapper list
- ignore enums, types or interfaces when calling setMockValue in createIt
0.1.23
5 years ago
0.1.22
5 years ago
0.1.21
5 years ago
0.1.20
5 years ago
0.1.17
5 years ago
0.1.18
5 years ago
0.1.19
5 years ago
0.1.16
5 years ago
0.1.12
5 years ago
0.1.13
5 years ago
0.1.14
5 years ago
0.1.15
5 years ago
0.1.11
5 years ago
0.1.10
5 years ago
0.1.9
5 years ago
0.1.8
5 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago