1
0
Fork 0
mirror of synced 2024-06-27 02:20:35 +12:00

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"]
}