You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
2.0 KiB
55 lines
2.0 KiB
module.exports = {
|
|
/**
|
|
* A set of globs passed to the glob package that qualify typescript files for testing.
|
|
*/
|
|
include: ["assembly/__tests__/**/*.spec.ts"],
|
|
/**
|
|
* A set of globs passed to the glob package that quality files to be added to each test.
|
|
*/
|
|
add: ["assembly/__tests__/**/*.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": ["full"], // Acceptable values are: full, half, stub (arena), and none
|
|
},
|
|
/**
|
|
* 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;
|
|
},
|
|
/**
|
|
* Add a custom reporter here if you want one. The following example is in typescript.
|
|
*
|
|
* @example
|
|
* import { TestReporter, TestGroup, TestResult, TestContext } from "as-pect";
|
|
*
|
|
* export class CustomReporter extends TestReporter {
|
|
* // implement each abstract method here
|
|
* public abstract onStart(suite: TestContext): void;
|
|
* public abstract onGroupStart(group: TestGroup): void;
|
|
* public abstract onGroupFinish(group: TestGroup): void;
|
|
* public abstract onTestStart(group: TestGroup, result: TestResult): void;
|
|
* public abstract onTestFinish(group: TestGroup, result: TestResult): void;
|
|
* public abstract onFinish(suite: TestContext): void;
|
|
* }
|
|
*/
|
|
// reporter: new CustomReporter(),
|
|
/**
|
|
* Specify if the binary wasm file should be written to the file system.
|
|
*/
|
|
outputBinary: false,
|
|
};
|