Skip to content

Commit

Permalink
Use explicit imports for jest, the jest types seems to be incompatibl…
Browse files Browse the repository at this point in the history
…e at the moment
  • Loading branch information
smarr committed Apr 27, 2023
1 parent 61239e3 commit 7b09ce1
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/api.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { describe, expect, beforeAll, it } from '@jest/globals';

import { readFileSync } from 'fs';
import { ValidateFunction } from 'ajv';
import { createValidator } from '../src/api-validator.js';
Expand Down
1 change: 1 addition & 0 deletions tests/cache-validity.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it } from '@jest/globals';
import { TimedCacheValidity } from '../src/db.js';

async function delayOf(ms): Promise<void> {
Expand Down
1 change: 1 addition & 0 deletions tests/dashboard.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, beforeAll, afterAll, it } from '@jest/globals';
import {
TestDatabase,
createAndInitializeDB,
Expand Down
1 change: 1 addition & 0 deletions tests/db-setup.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, beforeAll, afterAll, afterEach, it } from '@jest/globals';
import { BenchmarkData, Criterion, DataPoint } from '../src/api.js';
import { loadScheme } from '../src/db.js';
import { readFileSync } from 'fs';
Expand Down
1 change: 1 addition & 0 deletions tests/db.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, beforeAll, afterAll, it } from '@jest/globals';
import {
TestDatabase,
createAndInitializeDB,
Expand Down
1 change: 1 addition & 0 deletions tests/report.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, afterAll, it } from '@jest/globals';
import { readFileSync, unlinkSync, rmSync, existsSync } from 'fs';
import {
startReportGeneration,
Expand Down
1 change: 1 addition & 0 deletions tests/single-requester.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it } from '@jest/globals';
import { SingleRequestOnly } from '../src/single-requester.js';

describe('Basic functionality of SingleRequestOnly', () => {
Expand Down
1 change: 1 addition & 0 deletions tests/stats.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it } from '@jest/globals';
import Decimal from 'decimal.js';
import {
basicSum,
Expand Down
1 change: 1 addition & 0 deletions tests/ui.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable max-len */

import { describe, expect, it } from '@jest/globals';
import { simplifyCmdline } from '../src/views/util';

describe('Helper Functions for Rendering', () => {
Expand Down

0 comments on commit 7b09ce1

Please sign in to comment.