Fix tests

This commit is contained in:
Adria Navarro 2024-03-19 23:26:04 +01:00
parent 73f3e0c53b
commit b62044b4b8
4 changed files with 12 additions and 3 deletions

View File

@ -0,0 +1,10 @@
export default {
preset: "ts-jest",
testEnvironment: "node",
transform: {
"^.+\\.ts?$": "@swc/jest",
},
moduleNameMapper: {
"@budibase/types": "<rootDir>/../types/src",
},
}

View File

@ -1,4 +1,3 @@
import { expect, describe, it } from "vitest"
import { cron } from "../helpers"
describe("check valid and invalid crons", () => {

View File

@ -5,7 +5,6 @@ import {
SearchFilter,
} from "@budibase/types"
import { buildLuceneQuery, runLuceneQuery } from "../filters"
import { expect, describe, it, test } from "vitest"
describe("runLuceneQuery", () => {
const docs = [

View File

@ -3,7 +3,8 @@
"compilerOptions": {
"baseUrl": "..",
"rootDir": "src",
"composite": true
"composite": true,
"types": ["node", "jest"]
},
"exclude": ["node_modules", "dist"]
}