generated from 9renpoto/.59
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add new entry * refacotor: format
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
date: '2023-07-23' | ||
title: Try `node:test` with TypeScript | ||
snippet: node:test を動かしたかった | ||
--- | ||
|
||
## TL;DR 🚶♂️🚶♂️🚶♂️ | ||
|
||
- Output: <https://github.com/g59/bot/pull/1037> | ||
- Must be used with a loader to use TypeScript | ||
- <https://github.com/nodejs/help/issues/3902#issuecomment-1217235905> | ||
- The `assert` syntax can be used | ||
- <https://nodejs.org/api/assert.html> | ||
- <https://nodejs.org/api/test.html> | ||
- I still don't use it at work | ||
|
||
## Good | ||
|
||
- Type information is maintained 👌 | ||
- `describe`, `it` can be used 👌 | ||
|
||
## Not Sure | ||
|
||
- Asynchronous process not terminated 😶🌫️ | ||
- API is different on `node18` `node20` | ||
<https://github.com/kachick/times_kachick/issues/192> | ||
|
||
## Visual | ||
|
||
- Very simple | ||
- <https://nodejs.org/api/assert.html#assertvalue-message> | ||
- Not particularly excellent | ||
|
||
## 感想 | ||
|
||
- TypeScriptを使って小さなものを作りたい時に、nodejsを使うほど小さく便利なものではなかった | ||
- もうしばらく様子を伺う |