From d58b4ee3769a6c5cb9c578775e33cd8c87aade32 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 23 Jul 2023 19:25:01 +0900 Subject: [PATCH] feat: add new entry (#41) * feat: add new entry * refacotor: format --- posts/2023/07/23/node-test-runner.md | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 posts/2023/07/23/node-test-runner.md diff --git a/posts/2023/07/23/node-test-runner.md b/posts/2023/07/23/node-test-runner.md new file mode 100644 index 0000000..a0b5ed0 --- /dev/null +++ b/posts/2023/07/23/node-test-runner.md @@ -0,0 +1,37 @@ +--- +date: '2023-07-23' +title: Try `node:test` with TypeScript +snippet: node:test を動かしたかった +--- + +## TL;DR 🚶‍♂️🚶‍♂️🚶‍♂️ + +- Output: +- Must be used with a loader to use TypeScript + - +- The `assert` syntax can be used + - + - +- 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` + + +## Visual + +- Very simple + - +- Not particularly excellent + +## 感想 + +- TypeScriptを使って小さなものを作りたい時に、nodejsを使うほど小さく便利なものではなかった +- もうしばらく様子を伺う