-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Update profiling e2e test to use typescript (#12565)
- Loading branch information
1 parent
31700c9
commit 00ee962
Showing
5 changed files
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...test-applications/node-profiling/index.js → ...test-applications/node-profiling/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
const Sentry = require('@sentry/node'); | ||
const { nodeProfilingIntegration } = require('@sentry/profiling-node'); | ||
|
||
const wait = ms => new Promise(resolve => setTimeout(resolve, ms)); | ||
const wait = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)); | ||
|
||
Sentry.init({ | ||
dsn: 'https://[email protected]/6625302', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
dev-packages/e2e-tests/test-applications/node-profiling/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"compilerOptions": { | ||
"types": ["node"], | ||
"esModuleInterop": true, | ||
"lib": ["es2018"], | ||
"strict": true, | ||
"outDir": "dist", | ||
"target": "ESNext", | ||
"moduleResolution": "node", | ||
"skipLibCheck": true | ||
}, | ||
"include": ["index.ts"] | ||
} |