Add back typing

This commit is contained in:
adrinr 2023-02-03 19:07:41 +00:00
parent 420cb36ca7
commit c5b64b1714
2 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
import { Config } from "jest"
import { Config } from "@jest/types"
const preset = require("ts-jest/jest-preset")
const testContainersSettings = {
const testContainersSettings: Config.InitialProjectOptions = {
...preset,
preset: "@trendyol/jest-testcontainers",
setupFiles: ["./tests/jestEnv.ts"],
@ -20,7 +20,7 @@ if (!process.env.CI) {
console.log("Running tests with compiled dependency sources")
}
const config: Config = {
const config: Config.InitialOptions = {
projects: [
{
...testContainersSettings,

View File

@ -1,9 +1,9 @@
import { Config } from "jest"
import { Config } from "@jest/types"
import * as fs from "fs"
const preset = require("ts-jest/jest-preset")
const testContainersSettings = {
const testContainersSettings: Config.InitialProjectOptions = {
...preset,
preset: "@trendyol/jest-testcontainers",
setupFiles: ["./src/tests/jestEnv.ts"],
@ -29,7 +29,7 @@ if (!process.env.CI) {
console.log("Running tests with compiled dependency sources")
}
const config: Config = {
const config: Config.InitialOptions = {
projects: [
{
...testContainersSettings,