From 7b693b19c4ef443c67991207ca6d55e727802c52 Mon Sep 17 00:00:00 2001 From: Simon Ihmig Date: Wed, 27 Sep 2023 14:43:03 +0200 Subject: [PATCH] Update test --- tests/rollup-build-tests/explicit-imports.test.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/rollup-build-tests/explicit-imports.test.ts b/tests/rollup-build-tests/explicit-imports.test.ts index 5b7384f7..71164d47 100644 --- a/tests/rollup-build-tests/explicit-imports.test.ts +++ b/tests/rollup-build-tests/explicit-imports.test.ts @@ -48,8 +48,8 @@ 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.`, ); } } @@ -57,6 +57,7 @@ describe(`rollup-build | explicit-imports`, () => { hasEachOf(await dirContents(distDir), [ '_app_', 'components', + 'services', 'index.js', 'index.js.map', 'template-registry.js', @@ -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',