Skip to content

Commit 5819fdb

Browse files
committed
avoid declaration file error explicitly
1 parent 2f98b99 commit 5819fdb

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/test.js.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
run: |
3232
cd node_modules
3333
ln -s @mathjax/src mathjax-full
34+
cd ..
3435
3536
- name: Compile MathJax
3637
run: |

testsuite/src/setupTex.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ import {mathjax} from '#js/mathjax.js';
1313
import {OptionList} from '#js/util/Options.js';
1414
import {tmpJsonFile} from '#src/constants.js';
1515
import * as fs from 'fs';
16+
// @ts-ignore
1617
import {init} from '#source/node-main/node-main.mjs';
1718
import {expect} from '@jest/globals';
19+
// @ts-ignore
1820
import {source} from '#source/source.js';
1921

2022
declare const MathJax: any;

testsuite/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"#src/*": ["./src/*"],
1212
"#helpers": ["./src/index.js"]
1313
},
14-
"allowJs": true,
1514
"lib": ["DOM", "es2022"]
1615
},
1716
"include": ["./tests/**/*.ts", "./src/*.ts"]

0 commit comments

Comments
 (0)