From 9726ed24c326e76841d52b30ddaa85bfdd1ef4e1 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Fri, 1 Sep 2023 10:50:24 +0200 Subject: [PATCH] refactor: use mocked redwood repo, instead of local path --- packages/build-info/src/frameworks/redwood.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/build-info/src/frameworks/redwood.test.ts b/packages/build-info/src/frameworks/redwood.test.ts index b5bc181ced..db734934bf 100644 --- a/packages/build-info/src/frameworks/redwood.test.ts +++ b/packages/build-info/src/frameworks/redwood.test.ts @@ -33,7 +33,6 @@ const redwoodToml = ` ` test('should detect redwood', async ({ fs }) => { - /* const cwd = mockFileSystem({ 'redwood.toml': redwoodToml, 'package.json': JSON.stringify({ @@ -88,9 +87,8 @@ test('should detect redwood', async ({ fs }) => { }, }), }) - */ - const project = new Project(fs, '/Users/skn0tt/dev/tmp/rw-netlify-test', '/Users/skn0tt/dev/tmp/rw-netlify-test') + const project = new Project(fs, cwd, cwd) expect(await project.detectWorkspaces()).toBeNull() const detected = await project.detectFrameworks()