Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,4 @@ npm run unused # Find unused code

- `REACT_APP_BACKEND` - Backend URL for single-cluster mode
- `REACT_APP_META_BACKEND` - Meta backend URL for multi-cluster mode
- `PUBLIC_URL` - Base URL for static assets (use `.` for relative paths)
- `GENERATE_SOURCEMAP` - Set to `false` for production builds
1 change: 1 addition & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
e2e_tests:
name: Playwright Tests
timeout-minutes: 60
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now e2e tests can run for a very long time (hours), when they are totally broken, set timeout for such case

runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
1 change: 0 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@ Build artifacts are placed in `/build` directory. For embedded deployments, file

- `REACT_APP_BACKEND` - Backend URL for single-cluster mode
- `REACT_APP_META_BACKEND` - Meta backend URL for multi-cluster mode
- `PUBLIC_URL` - Base URL for static assets (use `.` for relative paths)
- `GENERATE_SOURCEMAP` - Set to `false` for production builds

## Common Issues & Troubleshooting
Expand Down
1 change: 0 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@ Build artifacts are placed in `/build` directory. For embedded deployments, file

- `REACT_APP_BACKEND` - Backend URL for single-cluster mode
- `REACT_APP_META_BACKEND` - Meta backend URL for multi-cluster mode
- `PUBLIC_URL` - Base URL for static assets (use `.` for relative paths)
- `GENERATE_SOURCEMAP` - Set to `false` for production builds

## Common Issues & Troubleshooting
Expand Down
7 changes: 7 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

babel config is needed for jest tests to work

presets: [
['@babel/preset-env', {targets: {node: 'current'}}],
['@babel/preset-react', {runtime: 'automatic'}],
'@babel/preset-typescript',
],
};
79 changes: 0 additions & 79 deletions config-overrides.js

This file was deleted.

2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default [
},
},
{
files: ['config-overrides.js', 'commitlint.config.js', 'src/setupProxy.js', '.github/**/*'],
files: ['commitlint.config.js', 'src/setupProxy.js', '.github/**/*', 'babel.config.js'],
languageOptions: {
globals: {
...globals.node,
Expand Down
34 changes: 34 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import type {Config} from 'jest';

const config: Config = {
verbose: true,

testEnvironment: 'jsdom',
testEnvironmentOptions: {
url: 'http://localhost:3000',
},

setupFilesAfterEnv: ['<rootDir>/src/setupTests.js'],
roots: ['<rootDir>/src', '<rootDir>/.github'],
testMatch: [
'<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}',
'<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}',
'<rootDir>/.github/**/*.{spec,test}.{js,jsx,ts,tsx}',
],
moduleFileExtensions: ['js', 'json', 'ts', 'tsx'],
moduleNameMapper: {
'\\.(css|less|scss|sass)$': 'jest-transform-css',
},

transform: {
'^.+\\.(ts|tsx|js|jsx)$': 'babel-jest',
},
transformIgnorePatterns: [
'node_modules/(?!(@gravity-ui|nanoid|uuid|shiki|@shikijs|@mjackson|@standard-schema)/)',
],

coverageDirectory: './coverage',
collectCoverageFrom: ['src/**/*.{ts,tsx,js,jsx}'],
};

export default config;
Loading
Loading