Compare commits

...

5 Commits

Author SHA1 Message Date
SagarRajput-7
679a7aaced chore: remove the snapshot update since no migration is done under this pr 2026-04-11 00:20:52 +05:30
SagarRajput-7
b4798adf7a Merge branch 'main' into asset-import-config 2026-04-10 23:42:25 +05:30
SagarRajput-7
aca7e80c8a chore: jest module resolution fix 2026-04-10 23:42:02 +05:30
SagarRajput-7
e684d09e2c chore: added modulewrapper for jests 2026-04-10 14:43:59 +05:30
SagarRajput-7
0b88938362 chore: config setup for asset migration, allow use of @ alias 2026-04-10 14:31:50 +05:30
4 changed files with 30 additions and 5 deletions

View File

@@ -0,0 +1 @@
export default 'test-file-stub';

View File

@@ -11,6 +11,9 @@ const config: Config.InitialOptions = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
modulePathIgnorePatterns: ['dist'],
moduleNameMapper: {
'\\.(png|jpg|jpeg|gif|svg|webp|avif|ico|bmp|tiff)$':
'<rootDir>/__mocks__/fileMock.ts',
'^@/(.*)$': '<rootDir>/src/$1',
'\\.(css|less|scss)$': '<rootDir>/__mocks__/cssMock.ts',
'\\.md$': '<rootDir>/__mocks__/cssMock.ts',
'^uplot$': '<rootDir>/__mocks__/uplotMock.ts',

View File

@@ -12,7 +12,11 @@
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowSyntheticDefaultImports": true,
"noFallthroughCasesInSwitch": true,
"moduleResolution": "bundler",
@@ -21,8 +25,15 @@
"noEmit": true,
"baseUrl": "./src",
"paths": {
"*": ["./*"],
"@constants/*": ["./container/OnboardingContainer/constants/*"]
"*": [
"./*"
],
"@constants/*": [
"./container/OnboardingContainer/constants/*"
],
"@/*": [
"./*"
]
},
"downlevelIteration": true,
"plugins": [
@@ -30,9 +41,18 @@
"name": "typescript-plugin-css-modules"
}
],
"types": ["vite/client", "node", "jest"]
"types": [
"vite/client",
"node",
"jest"
]
},
"exclude": ["node_modules", "src/parser/*.ts", "src/parser/TraceOperatorParser/*.ts", "orval.config.ts"],
"exclude": [
"node_modules",
"src/parser/*.ts",
"src/parser/TraceOperatorParser/*.ts",
"orval.config.ts"
],
"include": [
"./src",
"./src/**/*.ts",

View File

@@ -83,6 +83,7 @@ export default defineConfig(
plugins,
resolve: {
alias: {
'@': resolve(__dirname, './src'),
utils: resolve(__dirname, './src/utils'),
types: resolve(__dirname, './src/types'),
constants: resolve(__dirname, './src/constants'),