test(components): add component tests, use ts for e2e tests
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
const withPreconstruct = require('@preconstruct/next');
|
||||
const { patchWebpackConfig } = require('next-global-css');
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
reactStrictMode: true,
|
||||
swcMinify: true,
|
||||
webpack: (config, options) => {
|
||||
if (process.env.CYPRESS === 'true') {
|
||||
//Allows importing the global.css file in cypress/support/component.ts
|
||||
patchWebpackConfig(config, options);
|
||||
}
|
||||
return config;
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = withPreconstruct({ ...nextConfig });
|
||||
|
||||
Reference in New Issue
Block a user