-
Notifications
You must be signed in to change notification settings - Fork 3
/
as-pect.config.js
34 lines (33 loc) · 1.07 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
const config = {
/**
* A set of globs passed to the glob package that qualify typescript files for testing.
*/
entries: ["**/assembly/__tests__/**/*.spec.ts"],
/**
* A set of globs passed to the glob package that quality files to be added to each test.
*/
include: ["**/assembly/__tests__/**/*.include.ts"],
/**
* A set of regexp that will disclude source files from testing.
*/
disclude: [/node_modules/],
/**
* Add your required AssemblyScript imports here.
*/
async instantiate(memory, createImports, instantiate, binary) {
let instance; // Imports can reference this
const myImports = {
env: { memory }
// put your web assembly imports here, and return the module promise
};
instance = instantiate(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,
};
export default config;