Skip to content

Commit

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

now that tschaub/mock-fs#304 is available
  • Loading branch information
travi committed Aug 22, 2020
1 parent 4f4fb26 commit 0513568
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/integration/features/step_definitions/common-steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Before(async () => {
const projectTemplatePath = '../../../../templates';

stubbedFs({
node_modules: stubbedFs.load(resolve(__dirname, '..', '..', '..', '..', 'node_modules')),
templates: {
'README.mustache': await promises.readFile(resolve(__dirname, projectTemplatePath, './README.mustache')),
'editorconfig.txt': await promises.readFile(resolve(__dirname, projectTemplatePath, './editorconfig.txt'))
Expand Down

0 comments on commit 0513568

Please # to comment.