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 35980c33..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": { @@ -50,7 +50,7 @@ "eslint-plugin-import": "2.29.1", "eslint-plugin-prettier": "5.1.3", "@babel/eslint-parser": "7.23.10", - "tap": "16.3.10", + "tap": "18.7.0", "prettier": "3.2.4", "@podium/schemas": "5.0.0" }, 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`] = `