Explain that you can pass options to the spec runner (#460)
This commit is contained in:
1 parent
6e68f7495f
commit
d08c006902
1 file changed
+1
@@ -251,3 +251,4 @@ a few notes if you are interested in contributing:
|
||||
* You can run `AST_COMPARE=1 jest` for a more robust test run. That
|
||||
formats each file, re-parses it, and compares the new AST with the
|
||||
original one and makes sure they are semantically equivalent.
|
||||
* Each test folder has a `jsfmt.spec.js` that runs the tests. Normally you can just put `run_spec(__dirname);` there but if you want to pass specific options you can add the options object as the 2nd parameter like: `run_spec(__dirname, { parser: 'babylon' });`
|
||||
Reference in new issue
Block a user