Explain that you can pass options to the spec runner (#460)

This commit is contained in:
Henry Zhu authored and Christopher Chedeau committed 2017-01-25 09:30:48 -08:00
1 parent 6e68f7495f
commit d08c006902
1 file changed
+1
+1
View File
@@ -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 * 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 formats each file, re-parses it, and compares the new AST with the
original one and makes sure they are semantically equivalent. 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' });`