test: set up and tear down test dir
This commit is contained in:
parent
4482ca1ac0
commit
9404ba5171
1 changed files with 10 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ import {
|
|||
testAutocompleteFiltering,
|
||||
} from "./util";
|
||||
import { TEST_CASES } from "./testCases";
|
||||
import { setUpTestDir, tearDownTestDir } from "../../../test/util/testDir";
|
||||
|
||||
const filterTestCases = (tests: AutocompleteFileringTestInput[]) => {
|
||||
if (tests.some((test) => test.options?.only)) {
|
||||
|
|
@ -13,6 +14,15 @@ const filterTestCases = (tests: AutocompleteFileringTestInput[]) => {
|
|||
};
|
||||
|
||||
describe("llms/Mock", () => {
|
||||
beforeAll(async () => {
|
||||
tearDownTestDir();
|
||||
setUpTestDir();
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
tearDownTestDir();
|
||||
});
|
||||
|
||||
describe("Autocomplete Filtering Tests", () => {
|
||||
beforeEach(async () => {
|
||||
await new Promise((resolve) => setTimeout(resolve, 50));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue