how to pass compiler options to mocha

后端 未结 3 776
执笔经年
执笔经年 2021-02-13 06:23

I run a mocha command to run my tests

$ ./node_modules/.bin/mocha --compilers coffee:coffee-script -R spec

I wish to pass additional options t

3条回答
  •  清酒与你
    2021-02-13 06:40

    Simply add a .babelrc file to your root. Then any instances of babel (build, runtime, testing, etc) will reference that. https://babeljs.io/docs/usage/babelrc/

    You can even add specific config options per-environment.

提交回复
热议问题