Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Sep 27, 2023
1 parent 18253e3 commit 7b693b1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/rollup-build-tests/explicit-imports.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,16 @@ describe(`rollup-build | explicit-imports`, () => {
expect(files).to.include(
file,
`expected ${file} to be included in the expected list of files: ${expected.join(
' '
)}, however, only ${files.join(', ')} were found.`
' ',
)}, however, only ${files.join(', ')} were found.`,
);
}
}

hasEachOf(await dirContents(distDir), [
'_app_',
'components',
'services',
'index.js',
'index.js.map',
'template-registry.js',
Expand All @@ -72,10 +73,10 @@ describe(`rollup-build | explicit-imports`, () => {
'template-registry.d.ts.map',
]);

expect(await dirContents(path.join(distDir, 'services'))).to.deep.equal(
[],
'my-service.js is not in the app-re-exports'
);
expect(await dirContents(path.join(distDir, 'services'))).to.deep.equal([
'my-service.js',
'my-service.js.map',
]);
expect(await dirContents(path.join(declarationsDir, 'services'))).to.deep.equal([
'my-service.d.ts',
'my-service.d.ts.map',
Expand Down

0 comments on commit 7b693b1

Please sign in to comment.