Skip to content

Commit

Permalink
Merge pull request #406 from jsdelivr/fix-wallaby
Browse files Browse the repository at this point in the history
fix: fix wallaby configuration
  • Loading branch information
MartinKolarik authored Jul 26, 2023
2 parents 63d3287 + 634a0de commit 0cb6c11
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wallaby.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ export default function wallaby () {
return {
testFramework: 'mocha',
files: [
'public/v1/*',
'src/**/*.ts',
'src/**/*.cjs',
'config/*',
'test/utils/**/*.ts',
'test/mocks/**/*',
'test/plugins/**/*',
'test/setup.ts',
'test/types.ts',
'package.json',
Expand All @@ -22,6 +24,12 @@ export default function wallaby () {
tests: [
'test/tests/**/*.test.ts',
],

setup (w) {
const path = require('path');
w.testFramework.addFile(path.resolve(process.cwd(), 'test/setup.js'));
},

env: {
type: 'node',
params: {
Expand Down

0 comments on commit 0cb6c11

Please sign in to comment.