Skip to content

Commit

Permalink
Use cwd for certainty
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Jul 15, 2023
1 parent 33b0cb1 commit e34f12a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/build-tests/components.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
});
});
});

0 comments on commit e34f12a

Please sign in to comment.