From 1d348ee3d0e91a47129897d457d0610bcf845aee Mon Sep 17 00:00:00 2001 From: William Killerud Date: Thu, 1 Feb 2024 15:37:45 +0100 Subject: [PATCH] chore: migrate to tap 18 --- .gitignore | 1 + package.json | 4 ++-- tap-snapshots/tests/html-document.js.test.cjs | 10 +++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 2efc68f7..5ecb0355 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ node_modules/ *.log .vscode dist +.tap diff --git a/package.json b/package.json index ed8ea49b..3f753a13 100644 --- a/package.json +++ b/package.json @@ -32,8 +32,8 @@ "scripts": { "lint": "eslint .", "lint:fix": "eslint --fix .", - "test": "tap --no-check-coverage", - "test:snapshots:update": "tap --snapshot", + "test": "tap --disable-coverage --allow-empty-coverage", + "test:snapshots:update": "TAP_SNAPSHOT=1 npm t", "bench": "node benchmark/benchmark.js" }, "devDependencies": { diff --git a/tap-snapshots/tests/html-document.js.test.cjs b/tap-snapshots/tests/html-document.js.test.cjs index bbdd3f0a..b9e0418c 100644 --- a/tap-snapshots/tests/html-document.js.test.cjs +++ b/tap-snapshots/tests/html-document.js.test.cjs @@ -5,7 +5,7 @@ * Make sure to inspect the output below. Do not ignore changes! */ 'use strict' -exports[`tests/html-document.js TAP .document() - "type" is "module", "strategy" is set - should place assets based on strategy > must match snapshot 1`] = ` +exports[`tests/html-document.js > TAP > .document() - "type" is "module", "strategy" is set - should place assets based on strategy > must match snapshot 1`] = ` @@ -25,7 +25,7 @@ exports[`tests/html-document.js TAP .document() - "type" is "module", "strategy" ` -exports[`tests/html-document.js TAP .document() - arguments given - handles v4 js and css syntax > should render template using values given 1`] = ` +exports[`tests/html-document.js > TAP > .document() - arguments given - handles v4 js and css syntax > should render template using values given 1`] = ` @@ -49,7 +49,7 @@ exports[`tests/html-document.js TAP .document() - arguments given - handles v4 j ` -exports[`tests/html-document.js TAP .document() - arguments given > should render template using values given 1`] = ` +exports[`tests/html-document.js > TAP > .document() - arguments given > should render template using values given 1`] = ` @@ -69,7 +69,7 @@ exports[`tests/html-document.js TAP .document() - arguments given > should rende ` -exports[`tests/html-document.js TAP .document() - js "type" is "esm" > should set type to module on script tags 1`] = ` +exports[`tests/html-document.js > TAP > .document() - js "type" is "esm" > should set type to module on script tags 1`] = ` @@ -93,7 +93,7 @@ exports[`tests/html-document.js TAP .document() - js "type" is "esm" > should se ` -exports[`tests/html-document.js TAP .document() - no arguments given > should render template 1`] = ` +exports[`tests/html-document.js > TAP > .document() - no arguments given > should render template 1`] = `