Skip to content

Commit

Permalink
tentative - possibly we don't need those?
Browse files Browse the repository at this point in the history
  • Loading branch information
alicewriteswrongs committed Jul 13, 2023
1 parent 81d1841 commit 1aac4eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const generateCustomElementsTypesOutput = async (
const isBundleExport = outputTarget.customElementsExportBehavior === 'bundle';

// the path where we're going to write the typedef for the whole dist-custom-elements output
const customElementsDtsPath = normalizePath(join(outputTarget.dir!, 'index.d.ts'));
const customElementsDtsPath = join(outputTarget.dir!, 'index.d.ts');
// the directory where types for the individual components are written
const componentsTypeDirectoryRelPath = relative(outputTarget.dir!, typesDir);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('Custom Elements Typedef generation', () => {
'',
].join('\n');

expect(compilerCtx.fs.writeFile).toHaveBeenCalledWith('./my-best-dir/index.d.ts', expectedTypedefOutput, {
expect(compilerCtx.fs.writeFile).toHaveBeenCalledWith('my-best-dir/index.d.ts', expectedTypedefOutput, {
outputTargetType: DIST_CUSTOM_ELEMENTS,
});

Expand Down Expand Up @@ -158,7 +158,7 @@ describe('Custom Elements Typedef generation', () => {
'',
].join('\n');

expect(compilerCtx.fs.writeFile).toHaveBeenCalledWith('./my-best-dir/index.d.ts', expectedTypedefOutput, {
expect(compilerCtx.fs.writeFile).toHaveBeenCalledWith('my-best-dir/index.d.ts', expectedTypedefOutput, {
outputTargetType: DIST_CUSTOM_ELEMENTS,
});

Expand Down Expand Up @@ -226,7 +226,7 @@ describe('Custom Elements Typedef generation', () => {
'',
].join('\n');

expect(compilerCtx.fs.writeFile).toHaveBeenCalledWith('./my-best-dir/index.d.ts', expectedTypedefOutput, {
expect(compilerCtx.fs.writeFile).toHaveBeenCalledWith('my-best-dir/index.d.ts', expectedTypedefOutput, {
outputTargetType: DIST_CUSTOM_ELEMENTS,
});

Expand Down

0 comments on commit 1aac4eb

Please sign in to comment.