Skip to content

Commit 1106f4a

Browse files
committed
Fix Wallaby testing env var config
1 parent 6debde4 commit 1106f4a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

wallaby.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
module.exports = (wallaby) => {
2-
process.env.NODE_EXTRA_CA_CERTS = './test/fixtures/test-ca.pem'
1+
const path = require('path');
32

3+
module.exports = (wallaby) => {
44
return {
55
files: [
66
'package.json',
@@ -34,7 +34,10 @@ module.exports = (wallaby) => {
3434

3535
testFramework: 'mocha',
3636
env: {
37-
type: 'node'
37+
type: 'node',
38+
params: {
39+
env: `NODE_EXTRA_CA_CERTS=${path.resolve(__dirname, 'test/fixtures/test-ca.pem')}`
40+
}
3841
},
3942
debug: true
4043
};

0 commit comments

Comments
 (0)