File tree Expand file tree Collapse file tree 6 files changed +27
-27
lines changed
packages/react/test/integration Expand file tree Collapse file tree 6 files changed +27
-27
lines changed Original file line number Diff line number Diff line change 25
25
"test" : " playwright test" ,
26
26
"posttest" : " rimraf build node_modules"
27
27
},
28
- "eslintConfig" : {
29
- "extends" : [
30
- " react-app" ,
31
- " react-app/jest"
32
- ]
33
- },
34
- "browserslist" : {
35
- "production" : [
36
- " >0.2%" ,
37
- " not dead" ,
38
- " not op_mini all"
39
- ],
40
- "development" : [
41
- " last 1 chrome version" ,
42
- " last 1 firefox version" ,
43
- " last 1 safari version"
44
- ]
45
- },
46
28
"devDependencies" : {
47
29
"@playwright/test" : " 1.31.1" ,
48
30
"serve" : " 14.0.1"
62
44
"volta" : {
63
45
"node" : " 16.19.0" ,
64
46
"yarn" : " 1.22.19"
47
+ },
48
+ "browserslist" : {
49
+ "production" : [
50
+ " >0.2%" ,
51
+ " not dead" ,
52
+ " not op_mini all"
53
+ ],
54
+ "development" : [
55
+ " last 1 chrome version" ,
56
+ " last 1 firefox version" ,
57
+ " last 1 safari version"
58
+ ]
65
59
}
66
60
}
Original file line number Diff line number Diff line change
1
+ import * as Sentry from '@sentry/react' ;
1
2
import React from 'react' ;
2
3
import ReactDOM from 'react-dom/client' ;
3
- import * as Sentry from '@sentry/react' ;
4
4
import {
5
- useLocation ,
6
- useNavigationType ,
5
+ createHashRouter ,
7
6
createRoutesFromChildren ,
8
7
matchRoutes ,
9
8
RouterProvider ,
10
- createHashRouter ,
9
+ useLocation ,
10
+ useNavigationType ,
11
11
} from 'react-router-dom' ;
12
+
12
13
import Index from './pages/Index' ;
13
14
import User from './pages/User' ;
14
15
Original file line number Diff line number Diff line change 1
- import * as React from 'react' ;
2
1
import * as Sentry from '@sentry/react' ;
2
+ import * as React from 'react' ;
3
3
import { Link } from 'react-router-dom' ;
4
4
5
- const Index = ( ) => {
5
+ const Index = ( ) : JSX . Element => {
6
6
return (
7
7
< >
8
8
< input
Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
2
3
- const User = ( ) => {
3
+ const User = ( ) : JSX . Element => {
4
4
return < p > I am a blank page :)</ p > ;
5
5
} ;
6
6
Original file line number Diff line number Diff line change 1
- import { Transaction } from '@sentry/types' ;
1
+ import { expect , test } from '@playwright/test' ;
2
+ import type { Transaction } from '@sentry/types' ;
3
+
2
4
import { getMultipleSentryEnvelopeRequests } from '../../utils' ;
3
- import { test , expect } from '@playwright/test' ;
4
5
5
6
test ( 'Sends an error to Sentry' , async ( { page } ) => {
6
7
await page . goto ( '/' ) ;
Original file line number Diff line number Diff line change
1
+ /* eslint-disable no-console */
1
2
import { exec } from 'child_process' ;
2
3
import * as fs from 'fs' ;
3
4
4
5
async function run ( ) : Promise < void > {
6
+ // The ESLint plugin `react-scripts` uses is not compatible with our setup.
7
+ process . env . DISABLE_ESLINT_PLUGIN = 'true' ;
8
+
5
9
fs . readdirSync ( __dirname , { withFileTypes : true } )
6
10
. filter ( testApp => testApp . isDirectory ( ) )
7
11
. forEach ( testApp => {
You can’t perform that action at this time.
0 commit comments