-
Notifications
You must be signed in to change notification settings - Fork 4
/
as-pect.config.js
40 lines (40 loc) · 1.27 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
module.exports = {
/**
* A set of globs passed to the glob package that qualify typescript files for testing.
*/
include: ["./**/*.spec.ts"],
/**
* A set of globs passed to the glob package that quality files to be added to each test.
*/
add: ["./**/*.include.ts"],
/**
* All the compiler flags needed for this test suite. Make sure that a binary file is output.
*/
flags: {
/** To output a wat file, uncomment the following line. */
// "--textFile": ["output.wat"],
/** A runtime must be provided here. */
"--runtime": ["incremental"], // Acceptable values are: "incremental", "minimal", and "stub"
},
/**
* A set of regexp that will disclude source files from testing.
*/
disclude: [/node_modules/],
/**
* Add your required AssemblyScript imports here.
*/
imports(memory, createImports, instantiateSync, binary) {
let instance; // Imports can reference this
const myImports = {
// put your web assembly imports here, and return the module
};
instance = instantiateSync(binary, createImports(myImports));
return instance;
},
/** Enable code coverage. */
// coverage: ["assembly/**/*.ts"],
/**
* Specify if the binary wasm file should be written to the file system.
*/
outputBinary: false,
};