Skip to content
Snippets Groups Projects
Commit e3e3cb99 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

add plugin

parent 274aab56
No related branches found
No related tags found
2 merge requests!147Production Release | nshmp-apps,!143Cypress tests
// Plugins enable you to tap into, modify, or extend the internal behavior of Cypress // Plugins enable you to tap into, modify, or extend the internal behavior of Cypress
// For more info, visit https://on.cypress.io/plugins-api // For more info, visit https://on.cypress.io/plugins-api
const webpackPreprocessor = require('@cypress/webpack-preprocessor') const webpackPreprocessor = require('@cypress/webpack-preprocessor');
module.exports = (on) => { module.exports = on => {
on('file:preprocessor', webpackPreprocessor( on(
{ 'file:preprocessor',
webpackOptions: { webpackPreprocessor({
resolve: { webpackOptions: {
extensions: [".ts", ".tsx", ".js"], resolve: {
extensions: ['.ts', '.tsx', '.js'],
},
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'ts-loader',
options: {transpileOnly: true},
},
],
},
}, },
module: { })
rules: [ );
{
test: /\.tsx?$/,
loader: "ts-loader",
options: { transpileOnly: true }
}
]
}
},
}));
on('task', { on('task', {
log(message) { log(message) {
console.log(message) console.log(message);
return null return null;
}, },
}) });
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment