From: 
Subject: Debian changes

The Debian packaging of node-lit-ntml is maintained in git, using a workflow
similar to the one described in dgit-maint-merge(7).
The Debian delta is represented by this one combined patch; there isn't a
patch queue that can be represented as a quilt series.

A detailed breakdown of the changes is available from their canonical
representation -- git commits in the packaging repository.
For example, to see the changes made by the Debian maintainer in the first
upload of upstream version 1.2.3, you could use:

    % git clone https://git.dgit.debian.org/node-lit-ntml
    % cd node-lit-ntml
    % git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'

(If you have dgit, use `dgit clone node-lit-ntml`, rather than plain `git clone`.)

We don't use debian/source/options single-debian-patch because it has bugs.
Therefore, NMUs etc. may nevertheless have made additional patches.

---

diff --git a/src/tests/constants.ts b/src/tests/constants.ts
index dc072ba..c4e8a41 100644
--- a/src/tests/constants.ts
+++ b/src/tests/constants.ts
@@ -3,7 +3,7 @@ import type {
   htmlFragment as baseHtmlFragment,
   htmlFragmentSync as baseHtmlFragmentSync,
   htmlSync as baseHtmlSync,
-} from '../index.js';
+} from 'lit-ntml';
 
 interface TestParamsForHtml {
   error?: Error;
diff --git a/src/tests/html-fragment-sync.test.ts b/src/tests/html-fragment-sync.test.ts
index 028261b..b40c573 100644
--- a/src/tests/html-fragment-sync.test.ts
+++ b/src/tests/html-fragment-sync.test.ts
@@ -1,30 +1,15 @@
-import { expect, it } from 'vitest';
+import assert from 'node:assert/strict';
+import { it } from 'node:test';
 
-import { htmlFragmentSync } from '../index.js';
+import { htmlFragmentSync } from 'lit-ntml';
 import { testParamsForHtmlFragmentSync } from './constants.js';
 
-testParamsForHtmlFragmentSync.forEach(({
-  error,
-  expected,
-  inputFn,
-  message,
-}) => {
+testParamsForHtmlFragmentSync.forEach(({ error, expected, inputFn, message }) => {
   it(message, () => {
-    try {
-      const result = inputFn(htmlFragmentSync);
-
-      if (error) {
-        expect.fail('it should not throw an error');
-      } else {
-        expect(result).toBe(expected);
-      }
-    } catch (e) {
-      if (error) {
-        expect(e).toEqual(error);
-      } else if (e && error == null) {
-        console.error(e);
-        expect.fail('it should not throw any error');
-      }
+    if (error) {
+      assert.throws(() => inputFn(htmlFragmentSync), error);
+    } else {
+      assert.equal(inputFn(htmlFragmentSync), expected);
     }
   });
 });
diff --git a/src/tests/html-fragment.test.ts b/src/tests/html-fragment.test.ts
index 59a05de..a9fc655 100644
--- a/src/tests/html-fragment.test.ts
+++ b/src/tests/html-fragment.test.ts
@@ -1,30 +1,15 @@
-import { expect, it } from 'vitest';
+import assert from 'node:assert/strict';
+import { it } from 'node:test';
 
-import { htmlFragment } from '../index.js';
+import { htmlFragment } from 'lit-ntml';
 import { testParamsForHtmlFragment } from './constants.js';
 
-testParamsForHtmlFragment.forEach(({
-  error,
-  expected,
-  inputFn,
-  message,
-}) => {
+testParamsForHtmlFragment.forEach(({ error, expected, inputFn, message }) => {
   it(message, async () => {
-    try {
-      const result = await inputFn(htmlFragment);
-
-      if (error) {
-        expect.fail('it should throw an error');
-      } else {
-        expect(result).toBe(expected);
-      }
-    } catch (e) {
-      if (error) {
-        expect(e).toEqual(error);
-      } else if (e && error == null) {
-        console.error(e);
-        expect.fail('it should not throw any error');
-      }
+    if (error) {
+      await assert.rejects(() => inputFn(htmlFragment), error);
+    } else {
+      assert.equal(await inputFn(htmlFragment), expected);
     }
   });
 });
diff --git a/src/tests/html-sync.test.ts b/src/tests/html-sync.test.ts
index 1baa2db..66dadc5 100644
--- a/src/tests/html-sync.test.ts
+++ b/src/tests/html-sync.test.ts
@@ -1,30 +1,15 @@
-import { expect, it } from 'vitest';
+import assert from 'node:assert/strict';
+import { it } from 'node:test';
 
-import { htmlSync } from '..';
+import { htmlSync } from 'lit-ntml';
 import { testParamsForHtmlSync } from './constants.js';
 
-testParamsForHtmlSync.forEach(({
-  error,
-  expected,
-  inputFn,
-  message,
-}) => {
+testParamsForHtmlSync.forEach(({ error, expected, inputFn, message }) => {
   it(message, () => {
-    try {
-      const result = inputFn(htmlSync);
-
-      if (error) {
-        expect.fail('it should throw an error');
-      } else {
-        expect(result).toBe(expected);
-      }
-    } catch (e) {
-      if (error) {
-        expect(e).toEqual(error);
-      } else if (e && error == null) {
-        console.error(e, { cause: message });
-        expect.fail('it should not throw any error');
-      }
+    if (error) {
+      assert.throws(() => inputFn(htmlSync), error);
+    } else {
+      assert.equal(inputFn(htmlSync), expected);
     }
   });
 });
diff --git a/src/tests/html.test.ts b/src/tests/html.test.ts
index 23909e4..d2762dc 100644
--- a/src/tests/html.test.ts
+++ b/src/tests/html.test.ts
@@ -1,30 +1,15 @@
-import { expect, it } from 'vitest';
+import assert from 'node:assert/strict';
+import { it } from 'node:test';
 
-import { html } from '../index.js';
+import { html } from 'lit-ntml';
 import { testParamsForHtml } from './constants.js';
 
-testParamsForHtml.forEach(({
-  error,
-  expected,
-  inputFn,
-  message,
-}) => {
+testParamsForHtml.forEach(({ error, expected, inputFn, message }) => {
   it(message, async () => {
-    try {
-      const result = await inputFn(html);
-
-      if (error) {
-        expect.fail('it should throw an error');
-      } else {
-        expect(result).toBe(expected);
-      }
-    } catch (e) {
-      if (error) {
-        expect(e).toEqual(error);
-      } else if (e && error == null) {
-        console.error(e, { cause: message });
-        expect.fail('it should not throw any error');
-      }
+    if (error) {
+      await assert.rejects(() => inputFn(html), error);
+    } else {
+      assert.equal(await inputFn(html), expected);
     }
   });
 });
diff --git a/tsconfig.json b/tsconfig.json
index 07d22b1..358a4f2 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,10 +1,17 @@
 {
-  "extends": "./node_modules/@reallyland/tools/browser/tsconfig.json",
   "compilerOptions": {
-    "declarationDir": "dist",
+    "target": "ES2021",
+    "module": "NodeNext",
+    "moduleResolution": "NodeNext",
+    "strict": true,
+    "declaration": true,
+    "declarationMap": true,
+    "sourceMap": true,
+    "rootDir": "src",
     "outDir": "dist",
-    "rootDir": "src"
+    "types": []
   },
-  "include": ["src/**/*.ts"],
-  "exclude": ["dist", "node_modules"]
+  "include": [
+    "src/*.ts"
+  ]
 }
