Skip to content

Commit

Permalink
fix wrong test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
mizdra committed Jun 16, 2024
1 parent 658ecb9 commit fcfca7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/happy-css-modules/src/emitter/dts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ describe('generateDtsContentWithSourceMap', () => {
});
test('emit other directory', async () => {
createFixtures({
'/test/1.css': `.a {}`,
'/test/src/1.css': `.a {}`,
});
const result = await locator.load(filePath);
const result = await locator.load(getFixturePath('/test/src/1.css'));
const { dtsContent, sourceMap } = generateDtsContentWithSourceMap(
getFixturePath('/test/src/1.css'),
getFixturePath('/test/dist/1.css.d.ts'),
Expand All @@ -224,7 +224,7 @@ describe('generateDtsContentWithSourceMap', () => {
);
expect(dtsContent).toMatchInlineSnapshot(`
"declare const styles:
& Readonly<Pick<(typeof import("../1.css"))["default"], "a">>
& Readonly<{ "a": string }>
;
export default styles;
"
Expand Down

0 comments on commit fcfca7a

Please sign in to comment.