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 2525 "test" : " playwright test" ,
2626 "posttest" : " rimraf build node_modules"
2727 },
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- },
4628 "devDependencies" : {
4729 "@playwright/test" : " 1.31.1" ,
4830 "serve" : " 14.0.1"
6244 "volta" : {
6345 "node" : " 16.19.0" ,
6446 "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+ ]
6559 }
6660}
Original file line number Diff line number Diff line change 1+ import * as Sentry from '@sentry/react' ;
12import React from 'react' ;
23import ReactDOM from 'react-dom/client' ;
3- import * as Sentry from '@sentry/react' ;
44import {
5- useLocation ,
6- useNavigationType ,
5+ createHashRouter ,
76 createRoutesFromChildren ,
87 matchRoutes ,
98 RouterProvider ,
10- createHashRouter ,
9+ useLocation ,
10+ useNavigationType ,
1111} from 'react-router-dom' ;
12+
1213import Index from './pages/Index' ;
1314import User from './pages/User' ;
1415
Original file line number Diff line number Diff line change 1- import * as React from 'react' ;
21import * as Sentry from '@sentry/react' ;
2+ import * as React from 'react' ;
33import { Link } from 'react-router-dom' ;
44
5- const Index = ( ) => {
5+ const Index = ( ) : JSX . Element => {
66 return (
77 < >
88 < input
Original file line number Diff line number Diff line change 11import * as React from 'react' ;
22
3- const User = ( ) => {
3+ const User = ( ) : JSX . Element => {
44 return < p > I am a blank page :)</ p > ;
55} ;
66
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+
24import { getMultipleSentryEnvelopeRequests } from '../../utils' ;
3- import { test , expect } from '@playwright/test' ;
45
56test ( 'Sends an error to Sentry' , async ( { page } ) => {
67 await page . goto ( '/' ) ;
Original file line number Diff line number Diff line change 1+ /* eslint-disable no-console */
12import { exec } from 'child_process' ;
23import * as fs from 'fs' ;
34
45async 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+
59 fs . readdirSync ( __dirname , { withFileTypes : true } )
610 . filter ( testApp => testApp . isDirectory ( ) )
711 . forEach ( testApp => {
You can’t perform that action at this time.
0 commit comments