@swc/core 1.2.119 → 1.2.120

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ // Inject jest's assertion (expect) into global scope for the Mocha
2
+ // to use same assertion between node-swc & rest.
3
+ global.expect = require('expect');
package/.mocharc.js ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * https://github.com/swc-project/swc/pull/3009
3
+ *
4
+ * There are 2 test runners in this repo:
5
+ * - jest is being used for unit testing node-swc packages with javascript test cases
6
+ * - mocha is being used for cargo's test requires js runtime to validate its transform.
7
+ *
8
+ * This config is for the mocha test runner invoked by cargo to resolve its global setup file.
9
+ */
10
+ module.exports = {
11
+ require: require.resolve('./.mocha.setup.js')
12
+ };