@metamask/snaps-jest
Version:
A Jest preset for end-to-end testing MetaMask Snaps, including a Jest environment, and a set of Jest matchers
17 lines (12 loc) • 372 B
JavaScript
const { resolve } = require('path');
/**
* @type {import('jest').Config}
*/
const config = {
testEnvironment: '@metamask/snaps-jest',
// End-to-end tests can take longer than usual to run, so we set the test
// timeout to 30 seconds by default.
testTimeout: 30000,
setupFilesAfterEnv: [resolve(__dirname, 'dist', 'setup.cjs')],
};
module.exports = config;