Add back typing
This commit is contained in:
parent
420cb36ca7
commit
c5b64b1714
|
@ -1,7 +1,7 @@
|
||||||
import { Config } from "jest"
|
import { Config } from "@jest/types"
|
||||||
const preset = require("ts-jest/jest-preset")
|
const preset = require("ts-jest/jest-preset")
|
||||||
|
|
||||||
const testContainersSettings = {
|
const testContainersSettings: Config.InitialProjectOptions = {
|
||||||
...preset,
|
...preset,
|
||||||
preset: "@trendyol/jest-testcontainers",
|
preset: "@trendyol/jest-testcontainers",
|
||||||
setupFiles: ["./tests/jestEnv.ts"],
|
setupFiles: ["./tests/jestEnv.ts"],
|
||||||
|
@ -20,7 +20,7 @@ if (!process.env.CI) {
|
||||||
console.log("Running tests with compiled dependency sources")
|
console.log("Running tests with compiled dependency sources")
|
||||||
}
|
}
|
||||||
|
|
||||||
const config: Config = {
|
const config: Config.InitialOptions = {
|
||||||
projects: [
|
projects: [
|
||||||
{
|
{
|
||||||
...testContainersSettings,
|
...testContainersSettings,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import { Config } from "jest"
|
import { Config } from "@jest/types"
|
||||||
|
|
||||||
import * as fs from "fs"
|
import * as fs from "fs"
|
||||||
const preset = require("ts-jest/jest-preset")
|
const preset = require("ts-jest/jest-preset")
|
||||||
|
|
||||||
const testContainersSettings = {
|
const testContainersSettings: Config.InitialProjectOptions = {
|
||||||
...preset,
|
...preset,
|
||||||
preset: "@trendyol/jest-testcontainers",
|
preset: "@trendyol/jest-testcontainers",
|
||||||
setupFiles: ["./src/tests/jestEnv.ts"],
|
setupFiles: ["./src/tests/jestEnv.ts"],
|
||||||
|
@ -29,7 +29,7 @@ if (!process.env.CI) {
|
||||||
console.log("Running tests with compiled dependency sources")
|
console.log("Running tests with compiled dependency sources")
|
||||||
}
|
}
|
||||||
|
|
||||||
const config: Config = {
|
const config: Config.InitialOptions = {
|
||||||
projects: [
|
projects: [
|
||||||
{
|
{
|
||||||
...testContainersSettings,
|
...testContainersSettings,
|
||||||
|
|
Loading…
Reference in New Issue