-
Notifications
You must be signed in to change notification settings - Fork 10
/
as-pect.config.js
32 lines (32 loc) · 1.02 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
export default {
/**
* 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 by uncommenting the following line. */
// coverage: ["assembly/**/*.ts"],
/**
* Specify if the binary wasm file should be written to the file system.
*/
outputBinary: false,
};