config(mocha): require 'esm' depedency

This commit is contained in:
Timothy Lai
2020-07-28 13:37:07 -07:00
parent f0208e8f41
commit 85c40f16af
3 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,3 @@
recursive: true
require: ['@babel/register','source-map-support', 'test/mocha/setup.js']
require: ['esm','@babel/register','source-map-support', 'test/mocha/setup.js']
# spec: 'test/mocha/**/*.{js,jsx}'

6
package-lock.json generated
View File

@@ -9002,6 +9002,12 @@
"integrity": "sha512-qzm/XxIbxm/FHyH341ZrbnMUpe+5Bocte9xkmFMzPMjRaZMcXww+MpBptFvtU+79L362nqiLhekCxCxDPaUMBQ==",
"dev": true
},
"esm": {
"version": "3.2.25",
"resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz",
"integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==",
"dev": true
},
"espree": {
"version": "3.5.4",
"resolved": "https://registry.npmjs.org/espree/-/espree-3.5.4.tgz",

View File

@@ -121,6 +121,7 @@
"eslint-plugin-import": "^2.21.1",
"eslint-plugin-mocha": "^6.3.0",
"eslint-plugin-react": "^7.20.0",
"esm": "=3.2.25",
"expect": "^1.20.2",
"express": "^4.17.1",
"file-loader": "^6.0.0",