Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
test(integration): simplified stubbing of the filesystem for node mod…
Browse files Browse the repository at this point in the history
…ules

now that tschaub/mock-fs#304 is available
  • Loading branch information
travi committed Aug 23, 2020
1 parent 867df1b commit 2aa5a84
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions test/integration/features/step_definitions/common-steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,24 +76,7 @@ Before(async function () {
}
}
},
node_modules: {
'@form8ion': {
'mocha-scaffolder': {
templates: {
'canary-test.txt': await readFile(resolve(
__dirname,
'../../../../',
'node_modules/@form8ion/mocha-scaffolder/templates/canary-test.txt'
)),
'mocha-setup.txt': await readFile(resolve(
__dirname,
'../../../../',
'node_modules/@form8ion/mocha-scaffolder/templates/mocha-setup.txt'
))
}
}
}
}
node_modules: stubbedFs.load(resolve(__dirname, '../../../../', 'node_modules'))
}
});

Expand Down

0 comments on commit 2aa5a84

Please # to comment.