Sfoglia il codice sorgente

config(mocha): require 'esm' depedency

bubble
Timothy Lai 4 anni fa
parent
commit
85c40f16af
3 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. +1
    -1
      .mocharc.yaml
  2. +6
    -0
      package-lock.json
  3. +1
    -0
      package.json

+ 1
- 1
.mocharc.yaml Vedi 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
- 0
package-lock.json Vedi 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",


+ 1
- 0
package.json Vedi 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",


Caricamento…
Annulla
Salva