UNPKG

@mccann-hub/create-typescript-template

Version:

CLI tool to initialize a TypeScript project with dual CommonJS and ESM support, path aliases, unit testing, and linting for NPM publishing.

12 lines (9 loc) 249 B
import { assertEquals } from 'jsr:@std/assert'; import { hello } from '../src/index.ts'; Deno.test('simple test', () => { const x = 1 + 2; assertEquals(x, 3); }); Deno.test('default hello', () => { assertEquals(hello(), 'Hello world!'); });