mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-13 13:08:37 +00:00
16 lines
384 B
JavaScript
16 lines
384 B
JavaScript
const path = require("path")
|
|
|
|
// Tests load the locally built add-on instead of downloading the released one.
|
|
process.env.SIMPLEX_ADDON_PATH ??= path.join(__dirname, "build", "Release", "simplex.node")
|
|
|
|
module.exports = {
|
|
preset: "ts-jest",
|
|
maxWorkers: 1,
|
|
testEnvironment: "node",
|
|
transform: {
|
|
'^.+\\.ts$': ['ts-jest', {
|
|
tsconfig: 'tests/tsconfig.json'
|
|
}]
|
|
}
|
|
}
|