forked from dherault/serverless-offline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mocharc.cjs
41 lines (33 loc) · 880 Bytes
/
.mocharc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"use strict"
const { env } = require("process")
let spec
if (env.TEST === undefined || env.TEST === "all") {
spec = ["./src/**/*.test.js", "tests/**/*.test.js"]
}
if (env.TEST === "e2e") {
spec = ["tests/end-to-end/**/*.test.js"]
}
if (env.TEST === "unit") {
spec = ["./src/**/*.test.js", "tests/old-unit/**/*.test.js"]
}
if (env.TEST === "docker") {
spec = ["tests/integration/docker/**/*.test.js"]
}
if (env.TEST === "node") {
spec = [
"./src/**/*.test.js",
"tests/end-to-end/**/*.test.js",
"tests/events/**/*.test.js",
"tests/handler-module-formats/**/*.test.js",
// 'tests/integration/**/*.test.js',
"tests/lambda-run-mode/**/*.test.js",
"tests/old-unit/**/*.test.js",
// 'tests/scneario/**/*.test.js',
"tests/timeout/**/*.test.js",
]
}
module.exports = {
exclude: "**/node_modules/**/*",
spec,
timeout: 300000,
}