echoing-piano-69699
06/04/2021, 6:04 PMechoing-piano-69699
06/04/2021, 6:09 PMcy.spy
is only meant to be used after directly invoking a function that calls it. But what I want to test is that after a particular series of user interactions the method was calledechoing-piano-69699
06/04/2021, 6:11 PMhandsome-kilobyte-99728
06/04/2021, 7:01 PMbulky-sundown-74498
06/04/2021, 7:03 PMhandsome-kilobyte-99728
06/04/2021, 7:04 PMbulky-sundown-74498
06/04/2021, 7:08 PMReactRefreshWebpackPlugin()
since we do not use HMR as we re-run all the tests in the file when code changeshandsome-kilobyte-99728
06/04/2021, 7:09 PMconst path = require('path');
module.exports = {
mode: 'development',
devtool: false,
resolve: {
extensions: ['.js', '.jsx', '.tsx', '.ts', '.scss'],
alias: {
'@': path.resolve(__dirname, '..', 'src'),
},
},
module: {
rules: [
{
test: /\.tsx?$/,
exclude: [/node_modules/],
use: [
{
loader: 'ts-loader',
options: {
transpileOnly: true,
},
},
],
},
],
},
};
bulky-sundown-74498
06/04/2021, 7:09 PMbulky-sundown-74498
06/04/2021, 7:10 PMbulky-sundown-74498
06/04/2021, 7:10 PMbulky-sundown-74498
06/04/2021, 7:10 PMhandsome-kilobyte-99728
06/04/2021, 7:10 PMbulky-sundown-74498
06/04/2021, 7:10 PMbulky-sundown-74498
06/04/2021, 7:10 PMbulky-sundown-74498
06/04/2021, 7:11 PMbulky-sundown-74498
06/04/2021, 7:11 PMbulky-sundown-74498
06/04/2021, 7:11 PMhandsome-kilobyte-99728
06/04/2021, 7:11 PMbulky-sundown-74498
06/04/2021, 7:12 PMreturn config
after this line:
https://github.com/andrew-anguiano/reproductions/blob/main/cypress-component-testing-16784/cypress/plugins/index.js#L26bulky-sundown-74498
06/04/2021, 7:12 PMbulky-sundown-74498
06/04/2021, 7:12 PMbulky-sundown-74498
06/04/2021, 7:14 PMbulky-sundown-74498
06/04/2021, 7:14 PMhandsome-kilobyte-99728
06/04/2021, 7:14 PMbulky-sundown-74498
06/04/2021, 7:14 PMhandsome-kilobyte-99728
06/04/2021, 7:19 PMbulky-sundown-74498
06/04/2021, 7:19 PMbulky-sundown-74498
06/04/2021, 7:19 PMhandsome-kilobyte-99728
06/04/2021, 7:19 PM