-
-
Notifications
You must be signed in to change notification settings - Fork 666
Expand file tree
/
Copy pathpoku.config.js
More file actions
43 lines (36 loc) · 874 Bytes
/
poku.config.js
File metadata and controls
43 lines (36 loc) · 874 Bytes
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
42
43
// @ts-check
'use strict';
const { multiSuite } = require('@pokujs/multi-suite');
const { defineConfig, listFiles } = require('poku');
const { hasPrivileges } = require('./tools/common.js');
const commonConfig = defineConfig({
reporter: 'compact',
deno: {
allow: ['all'],
},
});
const parallel = defineConfig({
...commonConfig,
include: ['test/unit', 'test/integration'],
timeout: 30000,
concurrency: 8,
});
const sequential = defineConfig({
...commonConfig,
timeout: 60000,
sequential: true,
plugins: [
{
async discoverFiles() {
if (!(await hasPrivileges())) {
console.log('\n› Skipping global tests: insufficient privileges');
return [];
}
return listFiles('test/global');
},
},
],
});
module.exports = defineConfig({
plugins: [multiSuite([parallel, sequential])],
});