From 1922f276983c46b1552923e8bcd558a10c89187b Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 23 Jul 2023 19:22:05 +0900 Subject: [PATCH 1/2] feat: add new entry --- posts/2023/07/23/node-test-runner.md | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 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..cd2b520 --- /dev/null +++ b/posts/2023/07/23/node-test-runner.md @@ -0,0 +1,36 @@ +--- +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を使うほど小さく便利なものではなかった +- もうしばらく様子を伺う From 15575463374e935fc35c8c703d22dc213d6bdb52 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 23 Jul 2023 19:24:22 +0900 Subject: [PATCH 2/2] refacotor: format --- posts/2023/07/23/node-test-runner.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/posts/2023/07/23/node-test-runner.md b/posts/2023/07/23/node-test-runner.md index cd2b520..a0b5ed0 100644 --- a/posts/2023/07/23/node-test-runner.md +++ b/posts/2023/07/23/node-test-runner.md @@ -22,7 +22,8 @@ snippet: node:test を動かしたかった ## Not Sure - Asynchronous process not terminated 😶‍🌫️ -- API is different on `node18` `node20` +- API is different on `node18` `node20` + ## Visual