UNPKG

@mistio/mist-form

Version:

A Webcomponent that renders a form defined by a JSONSchema & an optional UISchema spec

32 lines (29 loc) 844 B
/* eslint-disable import/no-extraneous-dependencies */ const { createDefaultConfig } = require('@open-wc/testing-karma'); const merge = require('deepmerge'); module.exports = config => { config.set( merge(createDefaultConfig(config), { files: [ // runs all files ending with .test in the test folder, // can be overwritten by passing a --grep flag. examples: // // npm run test -- --grep test/foo/bar.test.js // npm run test -- --grep test/bar/* { pattern: config.grep ? config.grep : 'test/**/*.test.js', type: 'module', }, ], esm: { nodeResolve: true, }, browserConsoleLogOptions: { terminal: true, level: '', }, // you can overwrite/extend the config further }) ); return config; };