Skip to content

Commit

Permalink
Merge pull request #74 from iambumblehead/mv-spec-to-subdirectories
Browse files Browse the repository at this point in the history
move tests to subdirectory
  • Loading branch information
iambumblehead authored Jul 22, 2022
2 parents e135a99 + 2a1e24c commit ad08ea9
Show file tree
Hide file tree
Showing 27 changed files with 36 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
tests/node_modules
README.html
.tern-port
package-lock.json
24 changes: 2 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,28 +54,8 @@
"dependencies": {
"resolvewithplus": "^0.8.2"
},
"devDependencies": {
"uvu": "0.5.3",
"ava": "^4.0.1",
"eslint": "^8.12.0",
"ts-node": "^10.9.1",
"esmock": "file:.",
"form-urlencoded": "4.2.1",
"run-script-os": "^1.1.6",
"sinon": "^12.0.1"
},
"scripts": {
"test-node-esbuildts": "node --no-warnings --loader=@esbuild-kit/esm-loader --loader=esmock --test ./spec/node-ts/*ts",
"test-node-ts": "node --no-warnings --loader=ts-node/esm --loader=esmock --test ./spec/node-ts/*ts",
"test-node": "node --no-warnings --loader=esmock --test ./spec/node/",
"test-node18": "npm run test-node && npm run test-node-ts",
"test-nodeis18": "if (node -v | grep v18); then npm run test-node18; fi;",
"test-ava": "npx ava --node-arguments=\"--loader=esmock\" ./spec/ava/*.spec.js",
"test-uvu": "node --loader=esmock ./node_modules/uvu/bin.js ./spec/uvu/",
"test:default": "npm run test-nodeis18 && npm run test-ava && npm run test-uvu",
"test:windows": "npm run test-ava && npm run test-uvu",
"test": "run-script-os",
"test-no-warn": "npx ava --node-arguments=\"--loader=esmock --no-warnings\"",
"lint": "npx eslint src/*js spec"
"lint": "npx eslint . --ext .js,.mjs",
"test": "cd tests && npm install && npm test"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
33 changes: 33 additions & 0 deletions tests/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "esmock-tests",
"type": "module",
"license": "ISC",
"description": "various esmock unit tests",
"repository": {
"type": "git",
"url": "https://github.com/iambumblehead/esmock.git"
},
"dependencies": {
"esmock": "file:..",
"ts-node": "^10.9.1",
"uvu": "0.5.3",
"ava": "^4.0.1",
"eslint": "^8.12.0",
"ts-node": "^10.9.1",
"form-urlencoded": "4.2.1",
"run-script-os": "^1.1.6",
"sinon": "^12.0.1"
},
"scripts": {
"test-node-esbuildts": "node --loader=@esbuild-kit/esm-loader --loader=esmock --test ./tests-nodets/*ts",
"test-ava": "npx ava --node-arguments=\"--loader=esmock\" ./tests-ava/*.spec.js",
"test-uvu": "node --loader=esmock ./node_modules/uvu/bin.js ./tests-uvu/",
"test-node": "node --no-warnings --loader=esmock --test ./tests-node/",
"test-node-ts": "node --loader=ts-node/esm --loader=esmock --test ./tests-tsnode/*ts",
"test-node18": "npm run test-node && npm run test-node-ts",
"test-nodeis18": "if (node -v | grep v18); then npm run test-node18; fi;",
"test:default": "npm run test-nodeis18 && npm run test-ava && npm run test-uvu",
"test:windows": "npm run test-ava && npm run test-uvu",
"test": "npm install && run-script-os"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ad08ea9

Please sign in to comment.