{"height":"190","author_url":"https://blog.hatena.ne.jp/uggds/","published":"2024-05-24 00:00:00","categories":["Node.js"],"title":"\u3010Node.js\u3011\u6a19\u6e96\u306etest runner","blog_title":"UGA Boxxx","url":"https://uga-box.hatenablog.com/entry/2024/05/24/000000","type":"rich","description":"Node.js\u304c\u6a19\u6e96\u3067test runner\u3092\u642d\u8f09\u3057\u305f\u306e\u3092\u601d\u3044\u51fa\u3057\u305f\u306e\u3067\u89e6\u3063\u3066\u307f\u305f nodejs.org \u7c21\u5358\u306b\u8a66\u3059\u306b\u306f\u3001demo.test.mjs\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u4ee5\u4e0b\u3092\u8a18\u8f09\u3059\u308c\u3070\u826f\u3044 import test from 'node:test'; test('synchronous passing test', (t) => { // This test passes because it does not throw an exception. assert.strictEqual(1, 1); }); \u305d\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3055\u308c\u308b $ node --test demo.test.\u2026","blog_url":"https://uga-box.hatenablog.com/","author_name":"uggds","provider_name":"Hatena Blog","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fuga-box.hatenablog.com%2Fentry%2F2024%2F05%2F24%2F000000\" title=\"\u3010Node.js\u3011\u6a19\u6e96\u306etest runner - UGA Boxxx\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","width":"100%","version":"1.0"}