2021-01-26 13:22:23 +00:00
|
|
|
module.exports = {
|
|
|
|
roots: ["<rootDir>/src"],
|
|
|
|
testMatch: ["**/*.test.+(ts|tsx)"],
|
|
|
|
transform: {
|
|
|
|
"^.+\\.(ts|tsx)$": "ts-jest"
|
2021-04-01 10:44:44 +00:00
|
|
|
},
|
|
|
|
// The environment is the DOM by default, so discord.js fails to load because it's calling a Node-specific function.
|
|
|
|
// https://github.com/discordjs/discord.js/issues/3971#issuecomment-602010271
|
|
|
|
testEnvironment: "node"
|
2021-01-26 13:22:23 +00:00
|
|
|
};
|