Browse Source

fix: add test script

Sv443 1 year ago
parent
commit
42ecd18872
2 changed files with 3 additions and 3 deletions
  1. 1 0
      .gitignore
  2. 2 3
      package.json

+ 1 - 0
.gitignore

@@ -1,2 +1,3 @@
 node_modules/
 test.js
+test.ts

+ 2 - 3
package.json

@@ -6,7 +6,7 @@
   "main": "./src/BetterYTM.user.ts",
   "type": "module",
   "scripts": {
-    "test": "echo \"Error: no test specified\" && exit 1",
+    "test": "ts-node --esm ./test.ts",
     "build": "webpack",
     "post-build": "ts-node --esm ./src/tools/post-build.ts",
     "serve": "http-server -s -c 5 -p 8710 .",
@@ -19,8 +19,7 @@
   },
   "author": {
     "name": "Sv443",
-    "url": "https://github.com/Sv443",
-    "email": "[email protected]"
+    "url": "https://github.com/Sv443"
   },
   "license": "MIT",
   "bugs": {