-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#5682 add test for bun over ts and tsx
- Loading branch information
Showing
6 changed files
with
45 additions
and
37 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
|
||
SRC=$(cd $(dirname "$0"); pwd) | ||
source "${SRC}/../include.sh" | ||
|
||
cd $file_path/interpreter | ||
|
||
########### typescript fork test | ||
$pm2 delete all | ||
|
||
>typescript.log | ||
|
||
$pm2 start echo.ts -o typescript.log --merge-logs | ||
|
||
sleep 1.5 | ||
|
||
grep "Hello Typescript!" typescript.log | ||
spec "Should work on Typescript files in fork mode" | ||
|
||
# ########### typescript cluster test | ||
$pm2 delete all | ||
|
||
>typescript.log | ||
|
||
$pm2 start echo.tsx -o typescript.log --merge-logs | ||
|
||
sleep 1.5 | ||
|
||
grep "Hello Typescript!" typescript.log | ||
spec "Should work on Typescript files in fork mode" | ||
|
||
$pm2 delete all |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
class Greeter { | ||
constructor(public greeting: string) { } | ||
greet() { | ||
return this.greeting; | ||
} | ||
}; | ||
|
||
var greeter = new Greeter("Hello Typescript!"); | ||
|
||
console.log(greeter.greet()); |
f122aab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why use bun?