Skip to content

Commit

Permalink
Fix extension for file fixture containing TS
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Oct 2, 2024
1 parent d304d8d commit 847649d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/knip/test/jsdoc-exports.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ test('Find exports from jsdoc @type tags', async () => {
tags: [[], ['ignoreunresolved']],
});

assert(issues.exports['module.js']['alphaFn']);
assert(issues.exports['module.js']['internalUnusedFn']);
assert(issues.exports['module.js']['invalidTaggedFn']);
assert(issues.exports['module.js']['unusedFn']);
assert(issues.exports['module.ts']['alphaFn']);
assert(issues.exports['module.ts']['internalUnusedFn']);
assert(issues.exports['module.ts']['invalidTaggedFn']);
assert(issues.exports['module.ts']['unusedFn']);

assert.deepEqual(counters, {
...baseCounters,
Expand All @@ -35,9 +35,9 @@ test('Find exports from jsdoc @type tags (production)', async () => {
tags: [[], ['ignoreunresolved']],
});

assert(issues.exports['module.js']['alphaFn']);
assert(issues.exports['module.js']['invalidTaggedFn']);
assert(issues.exports['module.js']['unusedFn']);
assert(issues.exports['module.ts']['alphaFn']);
assert(issues.exports['module.ts']['invalidTaggedFn']);
assert(issues.exports['module.ts']['unusedFn']);

assert.deepEqual(counters, {
...baseCounters,
Expand Down

0 comments on commit 847649d

Please sign in to comment.