From 34e90607fecb5736e52826046e1bd4fea4d1197e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Wed, 20 May 2020 14:04:26 +0000 Subject: [PATCH] Test that it respects the es-shim-api interface --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 984ab7b..086c5b9 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,9 @@ }, "bugs": "https://github.com/mathiasbynens/String.fromCodePoint/issues", "scripts": { - "test": "node tests/tests.js", + "pretest": "es-shim-api --bound", + "test": "npm run tests-only", + "tests-only": "node tests/tests.js", "cover": "istanbul cover --report html --verbose --dir coverage tests/tests.js", "coveralls": "istanbul cover --verbose --dir coverage tests/tests.js && cat coverage/lcov.info | coveralls; rm -rf coverage/lcov*" }, @@ -39,6 +41,7 @@ "es-abstract": "^1.17.5" }, "devDependencies": { + "@es-shims/api": "^2.1.2", "coveralls": "^2.11.1", "istanbul": "^0.3.0" }