Skip to content

Commit

Permalink
test: update tap
Browse files Browse the repository at this point in the history
  • Loading branch information
wkillerud committed Mar 6, 2024
1 parent b464a1e commit d8d7d5f
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 51 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -24,6 +24,7 @@ coverage

# nyc test coverage
.nyc_output
.tap

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -9,8 +9,8 @@
"src/"
],
"scripts": {
"test": "tap test/*.js --no-coverage",
"test:snapshot": "TAP_SNAPSHOT=1 tap test/*.js --no-coverage",
"test": "tap test/*.js --disable-coverage --allow-empty-coverage",
"test:snapshot": "TAP_SNAPSHOT=1 tap test/*.js --disable-coverage --allow-empty-coverage",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
Expand Down Expand Up @@ -46,7 +46,7 @@
"postcss": "8.4.31",
"rollup": "2.79.1",
"semantic-release": "19.0.5",
"tap": "14.11.0"
"tap": "18.7.0"
},
"dependencies": {
"@eik/common": "4.0.0-next.5",
Expand Down
48 changes: 0 additions & 48 deletions tap-snapshots/test-plugin.js-TAP.test.js

This file was deleted.

48 changes: 48 additions & 0 deletions tap-snapshots/test/plugin.js.test.cjs
@@ -0,0 +1,48 @@
/* IMPORTANT
* This snapshot file is auto-generated, but designed for humans.
* It should be checked into source control and tracked carefully.
* Re-generate by setting TAP_SNAPSHOT=1 and running tests.
* Make sure to inspect the output below. Do not ignore changes!
*/
'use strict'
exports[`test/plugin.js > TAP > plugin() - advanced module - should replace normalize.css with CDN URL > advanced example 1`] = `
@import 'https://cdn.eik.dev/normalize.css@8/normalize.css';
`

exports[`test/plugin.js > TAP > plugin() - eik.json defined import maps > import maps specified in eik.json 1`] = `
@import 'https://cdn.eik.dev/normalize.css@8/normalize.css';
`

exports[`test/plugin.js > TAP > plugin() - Import map defined through constructor "maps" argument take precedence over import map defined in eik.json > Should rewrite import statement to https://cdn.eik.dev/normalize.css@8/normalize.css 1`] = `
@import 'https://cdn.eik.dev/normalize.css@8/normalize.css';
`

exports[`test/plugin.js > TAP > plugin() - Import map defined through constructor "maps" argument take precedence over import map defined through constructor "urls" argument > Should rewrite import statement to https://cdn.eik.dev/normalize.css@8/normalize.css 1`] = `
@import 'https://cdn.eik.dev/normalize.css@8/normalize.css';
`

exports[`test/plugin.js > TAP > plugin() - Import map defined through constructor "urls" argument take precedence over import map defined in eik.json > Should rewrite import statement to https://cdn.eik.dev/normalize.css@8/normalize.css 1`] = `
@import 'https://cdn.eik.dev/normalize.css@8/normalize.css';
`

exports[`test/plugin.js > TAP > plugin() - simple module - should replace normalize.css with CDN URL > simple example 1`] = `
@import 'https://cdn.eik.dev/normalize.css@8/normalize.css';
`

exports[`test/plugin.js > TAP > plugin() - webpack module - should replace normalize.css with CDN URL > webpack example 1`] = `
@import 'https://cdn.eik.dev/normalize.css@8/normalize.css';
`

0 comments on commit d8d7d5f

Please sign in to comment.