mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
eb21506d40
* ⚡️ vite
* replace webpack with esbuild in build script
* move build sr to esbuild
* esbuild send-request shim
* remove main externals
* fix lint
* remove webpack from insomnia-testing
* removes more webpack stuff
TODO after this PR: make debugging work again
* pin swagger-ui-react to version before esm change
* restore prepare script to build in bootstrap
* use default tsconfig for eslint and apply fixes
* bundle insomnia-components as cjs/esm
* makes ca_certs.ts pass linting
* builds types for insomnia-components
* improve build script for production
* skip typechecking insomnia-components
* separate package from build
* add electron to externals
* add preload bundling and fix build output
* exclude grpc/proto-loader from the bundle
* move node packages to commonjs
* don't bundle grpc since it's a node module
* fix content security error
* use vite lib mode for insomnia-components
* tidy up vite config and tsconfig options
* update package-locks
* use process.env. for static build time variables
* fix vscode debugging
Co-authored-by: jackkav <jackkav@gmail.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
30 lines
868 B
JavaScript
30 lines
868 B
JavaScript
/** @type { import('@jest/types').Config.InitialOptions } */
|
|
module.exports = {
|
|
// preset: '../../jest-preset.js', // DOES NOT WORK
|
|
// same as preset:
|
|
collectCoverage: false,
|
|
globals: {
|
|
'ts-jest': {
|
|
isolatedModules: true,
|
|
},
|
|
},
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
resetMocks: true,
|
|
resetModules: true,
|
|
testRegex: ['.+\\.test\\.tsx?$'],
|
|
transform: { '^.+\\.tsx?$': 'ts-jest' },
|
|
|
|
// extended from preset:
|
|
cache: false,
|
|
modulePathIgnorePatterns: ['<rootDir>/network/.*/__mocks__'],
|
|
rootDir: 'app',
|
|
setupFiles: ['./__jest__/setup.ts'],
|
|
setupFilesAfterEnv: ['./__jest__/setup-after-env.ts'],
|
|
testEnvironment: 'jsdom',
|
|
verbose: true,
|
|
moduleNameMapper: {
|
|
'\\.(css|less|png)$': '<rootDir>/__mocks__/dummy.ts',
|
|
'styled-components': '<rootDir>/../node_modules/styled-components',
|
|
},
|
|
};
|