From e34f12a4483be8ce106f659e6f9d33a244760e7c Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Sat, 15 Jul 2023 12:08:31 -0400 Subject: [PATCH] Use cwd for certainty --- tests/build-tests/components.test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/build-tests/components.test.ts b/tests/build-tests/components.test.ts index 36d27898..5a068212 100644 --- a/tests/build-tests/components.test.ts +++ b/tests/build-tests/components.test.ts @@ -73,22 +73,22 @@ describe('components', () => { }); it('generates correct files with no template', async () => { - await copyFixture('src/a-component.js', { scenario: 'addon-only-ts' }); + await copyFixture('src/a-component.js', { scenario: 'addon-only-ts', cwd }); await runScript({ cwd, script: 'build', packageManager }); - await matchesFixture('dist/a-component.js', { scenario: 'addon-only-ts' }); - await matchesFixture('declarations/a-component.d.ts', { scenario: 'addon-only-ts' }); + await matchesFixture('dist/a-component.js', { scenario: 'addon-only-ts', cwd }); + await matchesFixture('declarations/a-component.d.ts', { scenario: 'addon-only-ts', cwd }); }); it('generates correct files with a template', async () => { - await copyFixture('src/b-component.ts', { scenario: 'addon-only-ts' }); - await copyFixture('src/b-component.hbs', { scenario: 'addon-only-ts' }); + await copyFixture('src/b-component.ts', { scenario: 'addon-only-ts', cwd }); + await copyFixture('src/b-component.hbs', { scenario: 'addon-only-ts', cwd }); await runScript({ cwd, script: 'build', packageManager }); - await matchesFixture('dist/b-component.js', { scenario: 'addon-only-ts' }); - await matchesFixture('declarations/a-component.d.ts', { scenario: 'addon-only-ts' }); + await matchesFixture('dist/b-component.js', { scenario: 'addon-only-ts', cwd }); + await matchesFixture('declarations/a-component.d.ts', { scenario: 'addon-only-ts', cwd }); }); }); });