mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-16 21:50:44 +00:00
* ci: use default registries for empty variables * ci: drop package publish tags * ci: record releases in simplex-chat-libs * ci: skip recorded versions in publish plan * nodejs: raise default test timeout for migrations * nodejs: print download progress without console.error * nodejs: use the default timeout in migrating core tests
18 lines
521 B
JavaScript
18 lines
521 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,
|
|
// a test with a new database runs every migration, each committed with a disk flush: seconds on slow CI runners
|
|
testTimeout: 30000,
|
|
testEnvironment: "node",
|
|
transform: {
|
|
'^.+\\.ts$': ['ts-jest', {
|
|
tsconfig: 'tests/tsconfig.json'
|
|
}]
|
|
}
|
|
}
|