* Defaul build to type: module * Add packageInfo * 4.0 * pre * Adjust tests * jest js, rest cjs * Bump dev
21 lines
421 B
JavaScript
21 lines
421 B
JavaScript
// Copyright 2019-2021 @polkadot/wasm-crypto authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
/**
|
|
* @jest-environment jsdom
|
|
*/
|
|
|
|
// override-require in jest.config.js
|
|
|
|
import { beforeAll, tests, wasm } from './all/index.cjs';
|
|
|
|
describe('wasm-crypto', () => {
|
|
beforeEach(async () => {
|
|
await beforeAll();
|
|
});
|
|
|
|
Object.keys(tests).forEach((name) => {
|
|
it(name, () => tests[name](wasm));
|
|
});
|
|
});
|