Skip to content

Commit

Permalink
Fix a platform issue in a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
iclanton committed Aug 21, 2024
1 parent b7a28f8 commit 63d137d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions libraries/typings-generator/src/TypingsGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,10 @@ export class TypingsGenerator<TFileContents = string> {
private *_getTypingsFilePaths(relativePath: string): Iterable<string> {
const { generatedTsFolder, secondaryGeneratedTsFolders } = this._options;
const dtsFilename: string = `${relativePath}.d.ts`;
yield path.resolve(generatedTsFolder, dtsFilename);
yield `${generatedTsFolder}/${dtsFilename}`;
if (secondaryGeneratedTsFolders) {
for (const secondaryGeneratedTsFolder of secondaryGeneratedTsFolders) {
yield path.resolve(secondaryGeneratedTsFolder, dtsFilename);
yield `${secondaryGeneratedTsFolder}/${dtsFilename}`;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ describe('StringValuesTypingsGenerator', () => {
},
terminal,
...baseOptions
} as ConstructorParameters<
typeof import('../StringValuesTypingsGenerator').StringValuesTypingsGenerator
>[0]);
});

await generator.generateTypingsAsync(['test.ext']);
expect(outputFs).toMatchSnapshot();
Expand Down

0 comments on commit 63d137d

Please sign in to comment.