chore: Add cypress to codebase

This commit is contained in:
rebuilt 2023-07-10 13:45:25 -07:00
parent 05f52cfbf8
commit a4c68a4055
36 changed files with 3623 additions and 544 deletions

14
cypress/plugins/index.js Normal file
View file

@ -0,0 +1,14 @@
const { cypressEsbuildPreprocessor } = require('cypress-esbuild-preprocessor');
const path = require('path');
module.exports = (on, config) => {
on(
'file:preprocessor',
cypressEsbuildPreprocessor({
esbuildOptions: {
// optional tsconfig for typescript support and path mapping (see https://github.com/evanw/esbuild for all options)
tsconfig: path.resolve(__dirname, '../../tsconfig.json'),
},
}),
);
};