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

add plugin

parent 6b7c06a5
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( on('file:preprocessor', webpackPreprocessor(
'file:preprocessor', {
webpackPreprocessor({ webpackOptions: {
webpackOptions: { resolve: {
resolve: { extensions: [".ts", ".tsx", ".js"],
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