Skip to content
Snippets Groups Projects
Unverified Commit 0d2a295a authored by Jacob Parish's avatar Jacob Parish Committed by Jordan Harband
Browse files

[test] transform modules in karma so sinon can stub properly

 - require karma tests
 - temporarily turn off module transformation on airbnb-preset
parent 5a184695
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,3 @@ matrix:
env: COVERAGE=true TEST=false
- node_js: "lts/*"
env: KARMA=true TEST=false
allow_failures:
- node_js: "9"
- env: KARMA=true TEST=false # temporary
......@@ -33,8 +33,13 @@ module.exports = (config) => {
path.join(__dirname, 'test'),
require.resolve('airbnb-js-shims'),
],
query: {
presets: ['airbnb'],
options: {
presets: [
// setting modules to false so it does not transform twice
['airbnb', { modules: false }],
// transform to cjs so sinon can stub properly
['@babel/preset-env', { modules: 'cjs' }],
],
},
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment