Skip to content

Commit 4737ad5

Browse files
committed
fix(test): fix imports for jsdocs example verification
1 parent a4631db commit 4737ad5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/scripts/apidoc/verify-jsdoc-tags.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ describe('verify JSDoc tags', () => {
117117
mkdirSync(dir, { recursive: true });
118118

119119
const path = resolvePathToMethodFile(moduleName, methodName);
120-
const imports = [...new Set(examples.match(/faker[^\.]*(?=\.)/g))];
120+
const imports = [
121+
...new Set(examples.match(/(?<!\.)faker[^\.]*(?=\.)/g)),
122+
];
121123
writeFileSync(
122124
path,
123125
`import { ${imports.join(

0 commit comments

Comments
 (0)