Skip to content

Commit 00aa744

Browse files
committed
fix typechecking for tests
1 parent ef7ed1b commit 00aa744

26 files changed

+58
-45
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"uniprot": "./dist/bin/uniprot.js"
1515
},
1616
"scripts": {
17-
"build": "yarn run tsc",
17+
"build": "yarn run tsc -p tsconfig.build.json",
1818
"lint": "yarn run eslint",
1919
"test": "vitest run",
2020
"test:record": "POLLY_MODE=record vitest run",

tests/commands/peptfilter.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Peptfilter } from '../../lib/commands/peptfilter';
1+
import { Peptfilter } from '../../lib/commands/peptfilter.js';
22
import { vi } from 'vitest';
33
import * as mock from 'mock-stdin';
44

tests/commands/prot2pept.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Prot2pept } from '../../lib/commands/prot2pept';
1+
import { Prot2pept } from '../../lib/commands/prot2pept.js';
22
import { vi } from 'vitest';
33
import * as mock from 'mock-stdin';
44

tests/commands/unipept.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Unipept } from '../../lib/commands/unipept';
1+
import { Unipept } from '../../lib/commands/unipept.js';
22

33
test('test if all commands are available', async () => {
44
const command = new Unipept();

tests/commands/unipept/pept2ec.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { vi, afterAll } from 'vitest';
2-
import { Pept2ec } from "../../../lib/commands/unipept/pept2ec";
3-
import { setupPolly } from '../../mocks/polly';
2+
import { Pept2ec } from "../../../lib/commands/unipept/pept2ec.js";
3+
import { setupPolly } from '../../mocks/polly.js';
44
import { Polly } from '@pollyjs/core';
55

66
let output: string[];

tests/commands/unipept/pept2funct.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { vi, afterAll } from 'vitest';
2-
import { Pept2funct } from "../../../lib/commands/unipept/pept2funct";
3-
import { setupPolly } from '../../mocks/polly';
2+
import { Pept2funct } from "../../../lib/commands/unipept/pept2funct.js";
3+
import { setupPolly } from '../../mocks/polly.js';
44
import { Polly } from '@pollyjs/core';
55

66
let output: string[];

tests/commands/unipept/pept2go.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { vi, afterAll } from 'vitest';
2-
import { Pept2go } from "../../../lib/commands/unipept/pept2go";
3-
import { setupPolly } from '../../mocks/polly';
2+
import { Pept2go } from "../../../lib/commands/unipept/pept2go.js";
3+
import { setupPolly } from '../../mocks/polly.js';
44
import { Polly } from '@pollyjs/core';
55

66
let output: string[];

tests/commands/unipept/pept2interpro.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { vi, afterAll } from 'vitest';
2-
import { Pept2interpro } from "../../../lib/commands/unipept/pept2interpro";
3-
import { setupPolly } from '../../mocks/polly';
2+
import { Pept2interpro } from "../../../lib/commands/unipept/pept2interpro.js";
3+
import { setupPolly } from '../../mocks/polly.js';
44
import { Polly } from '@pollyjs/core';
55

66
let output: string[];

tests/commands/unipept/pept2lca.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { vi, afterAll } from 'vitest';
2-
import { Pept2lca } from "../../../lib/commands/unipept/pept2lca";
3-
import { setupPolly } from '../../mocks/polly';
2+
import { Pept2lca } from "../../../lib/commands/unipept/pept2lca.js";
3+
import { setupPolly } from '../../mocks/polly.js';
44
import { Polly } from '@pollyjs/core';
55

66
let output: string[];

tests/commands/unipept/pept2prot.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { vi, afterAll } from 'vitest';
2-
import { Pept2prot } from "../../../lib/commands/unipept/pept2prot";
3-
import { setupPolly } from '../../mocks/polly';
2+
import { Pept2prot } from "../../../lib/commands/unipept/pept2prot.js";
3+
import { setupPolly } from '../../mocks/polly.js';
44
import { Polly } from '@pollyjs/core';
55

66
let output: string[];

0 commit comments

Comments
 (0)