Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"prepublishOnly": "npx yarn build",
"prettier:check": "prettier --list-different \"src/**/*.{ts,tsx}\"",
"prettier:write": "prettier --write \"src/**/*.{ts,tsx}\"",
"test": "vitest run",
"test": "tsc --noEmit -p tests && vitest run",
"prepare": "husky"
},
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion tests/block-parsers.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import MarkdownIt from 'markdown-it';
import { describe, expect, it } from 'vitest';

import { parseMethodBlocks } from '../src/block-parsers';
import { parseMethodBlocks } from '../src/block-parsers.js';

describe('block parsers', () => {
it('should parse a method', async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { extendError } from '../src/helpers';
import { extendError } from '../src/helpers.js';

import chalk from 'chalk';
import { describe, expect, it } from 'vitest';
Expand Down
4 changes: 2 additions & 2 deletions tests/markdown-helpers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import {
consumeTypedKeysList,
findProcess,
slugifyHeading,
} from '../src/markdown-helpers';
import { DocumentationTag } from '../src/ParsedDocumentation';
} from '../src/markdown-helpers.js';
import { DocumentationTag } from '../src/ParsedDocumentation.js';

const getTokens = (md: string) => {
const markdown = new MarkdownIt({ html: true });
Expand Down
11 changes: 11 additions & 0 deletions tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"incremental": false,
"noEmit": true,
"rootDir": ".."
},
"include": [
"."
]
}