forked from polywrap/wrap-integrations
-
Notifications
You must be signed in to change notification settings - Fork 1
/
as-pect.config.js
61 lines (61 loc) · 2.1 KB
/
as-pect.config.js
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = {
/**
* A set of globs passed to the glob package that qualify typescript files for testing.
*/
include: ["src/__tests__/**/*.spec.ts"],
/**
* A set of globs passed to the glob package that qualify files to be added to each test.
*/
add: ["src/__tests__/**/*.include.ts"],
/**
* All the compiler flags needed for this test suite. Make sure that a binary file is output.
*/
flags: {
// "--debug": [],
/** This is required. Do not change this. The filename is ignored, but required by the compiler. */
"--binaryFile": ["output.wasm"],
/** To enable wat file output, use the following flag. The filename is ignored, but required by the compiler. */
// "--textFile": ["output.wat"],
"--runtime": ["stub"], // Acceptable values are: full, half, stub (arena), and none,
"--baseDir": process.cwd()
},
/** Output the binary wasm file: [testname].spec.wasm */
outputBinary: false,
/**
* A set of regexp that will disclude source files from testing.
*/
disclude: [/node_modules|e2e/],
/**
* Add your required AssemblyScript imports here.
*/
imports: {},
/**
* All performance statistics reporting can be configured here.
*/
performance: {
/** Enable performance statistics gathering. */
enabled: true,
/** Set the maximum number of samples to run for each test. */
maxSamples: 10000,
/** Set the maximum test run time in milliseconds. */
maxTestRunTime: 2000,
/** Set the number of decimal places to round to. */
roundDecimalPlaces: 3,
/** Report the median time in the default reporter. */
reportMedian: true,
/** Report the average time in milliseconds. */
reportAverage: true,
/** Report the standard deviation. */
reportStandardDeviation: false,
/** Report the maximum run time in milliseconds. */
reportMax: false,
/** Report the minimum run time in milliseconds. */
reportMin: false,
/** Report the variance. */
reportVariance: false,
},
/**
* To create your own custom reporter, please check out the Core API.
*/
// reporter: new CustomReporter(),
};