mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
14 lines
449 B
JavaScript
14 lines
449 B
JavaScript
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'),
|
|
},
|
|
}),
|
|
);
|
|
};
|