Skip to content
Closed
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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "typedoc-repros",
"dependencies": {
"@types/node": "latest",
"typedoc": "latest",
"typescript": "latest"
}
Expand Down
12 changes: 12 additions & 0 deletions src/helloWorld.test.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import assert from 'node:assert';
import { describe, it } from 'node:test';
import { helloWorld } from './index.ts';

describe('helloWorld', () => {
it('provides a valid example', async () => {
//#region example
const result = helloWorld();
assert(result === 'Hello World');
//#endregion example
});
});
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Some code reproducing a bug.
*
* {@includeCode ./helloWorld.test.mts#example}
*/
export const bug = 123;
export function helloWorld() {
return 'Hello World';
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"module": "Node16",
"lib": ["ES2022"],
"strict": true,
"noEmit": true
"noEmit": true,
"allowImportingTsExtensions": true
},
"include": ["src"]
}
Loading