Skip to content

Commit cfae102

Browse files
jest
1 parent a7ba13a commit cfae102

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

packages/test/ jest.config.ts

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export default {
2+
preset: "ts-jest",
3+
testEnvironment: "node",
4+
extensionsToTreatAsEsm: [".ts"],
5+
moduleNameMapper: {
6+
"^(\\.{1,2}/.*)\\.js$": "$1",
7+
},
8+
transform: {
9+
"^.+\\.tsx?$": [
10+
"ts-jest",
11+
{
12+
useESM: true,
13+
},
14+
],
15+
},
16+
};

packages/test/src/tests/providers.test.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
import dotenv from "dotenv";
22
import { zeroUuid } from "../test_resources/constants.js";
33
import { createRuntime } from "../test_resources/createRuntime.js";
4-
import {
5-
IAgentRuntime,
6-
type Memory,
7-
type Provider,
8-
type State,
9-
type UUID,
10-
} from "@ai16z/eliza";
4+
import { IAgentRuntime, Memory, Provider, State, UUID } from "@ai16z/eliza";
115

126
dotenv.config({ path: ".dev.vars" });
137

0 commit comments

Comments
 (0)