swc/.mocha.setup.js

3 lines
152 B
JavaScript

// Inject jest's assertion (expect) into global scope for the Mocha
// to use same assertion between node-swc & rest.
global.expect = require('expect');