UNPKG

537 BJavaScriptView Raw
1// This config is project-wide config for `npm run test:node`
2module.exports = {
3 // workaround for https://github.com/babel/babel/issues/2877
4 // "passPerPreset": true,
5 presets: [
6 [
7 '@babel/preset-env',
8 {
9 debug: true,
10 modules: 'commonjs',
11 targets: {
12 node: 'current',
13 },
14 },
15 ],
16 ],
17 plugins: [
18 '@babel/plugin-transform-runtime',
19 ['@babel/plugin-proposal-decorators', { legacy: true }],
20 ],
21 env: {
22 test: {
23 plugins: ['istanbul'],
24 },
25 },
26};