Skip to content

Commit 6a512a1

Browse files
fix: Signe code to do the PR (#2563)
his branch is a clone of renovate/web use for the PR #2520 Signed-off-by: Xavier-Cliquennois <xavier.cliquennois@wearegraphite.io>
1 parent 58ad3e3 commit 6a512a1

66 files changed

Lines changed: 21959 additions & 13261 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
unit-test-web:
7272
working_directory: ~/marquez/web
7373
docker:
74-
- image: circleci/node:12.22.7
74+
- image: cimg/node:18.16.0
7575
environment:
7676
TZ: 'America/New_York'
7777
steps:

web/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = {
1414
'eslint:recommended',
1515
'plugin:react/recommended',
1616
'plugin:@typescript-eslint/recommended',
17-
"prettier/@typescript-eslint",
17+
"prettier",
1818
"plugin:prettier/recommended"
1919
],
2020
settings: {

web/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:12-alpine
1+
FROM node:18-alpine
22
WORKDIR /usr/src/app
33
RUN apk update && apk add --virtual bash coreutils
44
RUN apk add --no-cache git

web/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Requirements
44

5-
To develop on this project, you need to have Node version 12.22.7 installed. In order to easily switch between node versions, we recommend using node version manager like [nvm](https://github.com/nvm-sh/nvm/blob/master/README.md)
5+
To develop on this project, you need to have Node version 18 installed. In order to easily switch between node versions, we recommend using node version manager like [nvm](https://github.com/nvm-sh/nvm/blob/master/README.md)
66

77
### Development
88

@@ -37,11 +37,10 @@ To develop on this project, you need to have Node version 12.22.7 installed. In
3737
### Testing Setup
3838

3939
- [Jest](https://jestjs.io/en/) is our testing framework. It is the test runner; it provides testing language (describe, it, beforeEach), mocking, snapshot, code coverage.
40-
- [Enzyme](https://github.com/airbnb/enzyme) - testing utility for testing React components. Provides methods for (mock) rendering components & DOM traversal.
41-
- run tests by doing `yarn run test`
40+
- [test-labrary](https://testing-library.com/)
41+
- run tests by doing `npm run test`
4242
- config files:
4343
- jest.config.js
44-
- setupEnzyme.ts
4544
- For testing Redux Sagas, we are using `Redux Saga Test Plan`. This library gives us both unit testing and integration test functionality. Check out the [docs](http://redux-saga-test-plan.jeremyfairbank.com/).
4645

4746
### Typescript

web/db.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

web/jest.config.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
module.exports = {
22
roots: ['<rootDir>/src'],
33
transform: {
4-
'^.+\\.tsx?$': 'ts-jest'
4+
'^.+\\.tsx?$': [
5+
'ts-jest',
6+
{
7+
isolatedModules: 'true'
8+
}
9+
]
510
},
611
testRegex: '__tests__/(.+).(test|spec).tsx?',
712
testPathIgnorePatterns: ['<rootDir>/src/__tests__(.+)__snapshots__'],
813
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
9-
snapshotSerializers: ['enzyme-to-json/serializer'],
10-
setupTestFrameworkScriptFile: '<rootDir>/setupEnzyme.ts',
1114
globalSetup: '<rootDir>globalSetup.ts',
1215
setupFiles: ['<rootDir>setupJest.ts'],
1316
testEnvironment: 'jsdom',
1417
globals: {
15-
'ts-jest': {
16-
isolatedModules: 'true'
17-
},
1818
__API_URL__: '/api/v1',
1919
__FEEDBACK_FORM_URL__: 'https://forms.gle/f3tTSrZ8wPj3sHTA7',
2020
__API_DOCS_URL__: 'https://marquezproject.github.io/marquez/openapi.html',
@@ -23,6 +23,8 @@ module.exports = {
2323
moduleNameMapper: {
2424
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
2525
'<rootDir>/__tests__/__mocks__/fileMock.js',
26-
'\\.(css|less)$': 'identity-obj-proxy'
26+
'\\.(css|less)$': 'identity-obj-proxy',
27+
"d3": "<rootDir>/node_modules/d3/dist/d3.min.js",
28+
"^d3-(.*)$": "<rootDir>/node_modules/d3-$1/dist/d3-$1.min.js"
2729
}
2830
}

0 commit comments

Comments
 (0)