swc/.mocharc.js
2022-05-04 14:25:28 +00:00

13 lines
447 B
JavaScript

/**
* https://github.com/swc-project/swc/pull/3009
*
* There are 2 test runners in this repo:
* - jest is being used for unit testing node-swc packages with javascript test cases
* - mocha is being used for cargo's test requires js runtime to validate its transform.
*
* This config is for the mocha test runner invoked by cargo to resolve its global setup file.
*/
module.exports = {
require: require.resolve("./.mocha.setup.js"),
};