Skip to content

Commit

Permalink
feat: add new entry (#41)
Browse files Browse the repository at this point in the history
* feat: add new entry

* refacotor: format
  • Loading branch information
9renpoto authored Jul 23, 2023
1 parent 8bbcfc7 commit d58b4ee
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions posts/2023/07/23/node-test-runner.md
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を使うほど小さく便利なものではなかった
- もうしばらく様子を伺う

0 comments on commit d58b4ee

Please sign in to comment.