From 2aa5a84edfa50a1c36e5ef786f613dd8c188a2d3 Mon Sep 17 00:00:00 2001 From: Matt Travi Date: Sat, 22 Aug 2020 23:51:44 -0500 Subject: [PATCH] test(integration): simplified stubbing of the filesystem for node modules now that https://github.com/tschaub/mock-fs/pull/304 is available --- .../features/step_definitions/common-steps.js | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/test/integration/features/step_definitions/common-steps.js b/test/integration/features/step_definitions/common-steps.js index b9c4b7d7..3f6c09dc 100644 --- a/test/integration/features/step_definitions/common-steps.js +++ b/test/integration/features/step_definitions/common-steps.js @@ -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')) } });