Fix tests
This commit is contained in:
parent
73f3e0c53b
commit
b62044b4b8
|
@ -0,0 +1,10 @@
|
||||||
|
export default {
|
||||||
|
preset: "ts-jest",
|
||||||
|
testEnvironment: "node",
|
||||||
|
transform: {
|
||||||
|
"^.+\\.ts?$": "@swc/jest",
|
||||||
|
},
|
||||||
|
moduleNameMapper: {
|
||||||
|
"@budibase/types": "<rootDir>/../types/src",
|
||||||
|
},
|
||||||
|
}
|
|
@ -1,4 +1,3 @@
|
||||||
import { expect, describe, it } from "vitest"
|
|
||||||
import { cron } from "../helpers"
|
import { cron } from "../helpers"
|
||||||
|
|
||||||
describe("check valid and invalid crons", () => {
|
describe("check valid and invalid crons", () => {
|
||||||
|
|
|
@ -5,7 +5,6 @@ import {
|
||||||
SearchFilter,
|
SearchFilter,
|
||||||
} from "@budibase/types"
|
} from "@budibase/types"
|
||||||
import { buildLuceneQuery, runLuceneQuery } from "../filters"
|
import { buildLuceneQuery, runLuceneQuery } from "../filters"
|
||||||
import { expect, describe, it, test } from "vitest"
|
|
||||||
|
|
||||||
describe("runLuceneQuery", () => {
|
describe("runLuceneQuery", () => {
|
||||||
const docs = [
|
const docs = [
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": "..",
|
"baseUrl": "..",
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"composite": true
|
"composite": true,
|
||||||
|
"types": ["node", "jest"]
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules", "dist"]
|
"exclude": ["node_modules", "dist"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue