@netflix/x-test
Advanced tools
Comparing version 1.0.0-rc.11 to 1.0.0-rc.12
{ | ||
"name": "@netflix/x-test", | ||
"version": "1.0.0-rc.11", | ||
"version": "1.0.0-rc.12", | ||
"description": "a simple, tap-compliant test runner for the browser", | ||
@@ -12,6 +12,2 @@ "main": "x-test.js", | ||
"license": "SEE LICENSE IN LICENSE", | ||
"config": { | ||
"port": 8080, | ||
"host": "127.0.0.1" | ||
}, | ||
"publishConfig": { | ||
@@ -21,5 +17,5 @@ "access": "public" | ||
"scripts": { | ||
"start": "echo View at: http://$npm_package_config_host:$npm_package_config_port && static ./ --cache 1 --host-address $npm_package_config_host --port $npm_package_config_port > /dev/null 2>&1", | ||
"start": "element-server", | ||
"lint": "eslint --quiet .", | ||
"lint-strict": "eslint .", | ||
"lint-strict": "eslint --max-warnings=0 .", | ||
"test": "node test.js | tap-parser -l" | ||
@@ -36,11 +32,7 @@ }, | ||
"devDependencies": { | ||
"eslint": "^5.16.0", | ||
"eslint-config-prettier": "^4.2.0", | ||
"eslint-plugin-prettier": "^3.0.1", | ||
"faucet": "^0.0.1", | ||
"node-static": "0.7.11", | ||
"prettier": "^1.17.0", | ||
"puppeteer": "^1.11.0", | ||
"tap-parser": "^9.0.0" | ||
"@netflix/element-server": "^1.0.12", | ||
"eslint": "^6.5.1", | ||
"puppeteer": "^1.20.0", | ||
"tap-parser": "^10.0.0" | ||
} | ||
} |
@@ -0,1 +1,2 @@ | ||
/* eslint-env node */ | ||
const puppeteer = require('puppeteer'); | ||
@@ -9,6 +10,7 @@ | ||
// Before navigation, start mapping browser logs to stdout. | ||
// eslint-disable-next-line no-console | ||
page.on('console', message => console.log(message.text())); | ||
// Visit our test page. | ||
await page.goto('http://127.0.0.1:8080/?x-test-no-reporter'); | ||
await page.goto('http://0.0.0.0:8080/node_modules/@netflix/x-test/?x-test-no-reporter'); | ||
@@ -37,2 +39,3 @@ // Wait to be signaled about the end of the test. Because the test may have | ||
// Ensure we exit with a non-zero code if anything fails (e.g., timeout). | ||
// eslint-disable-next-line no-console | ||
console.error(err); | ||
@@ -39,0 +42,0 @@ process.exit(1); |
@@ -361,2 +361,5 @@ /** | ||
if ( | ||
// TODO: This seems like a potential eslint bug? It's not clear why | ||
// this would would be a constant condition. | ||
// eslint-disable-next-line no-constant-condition | ||
lastItId === null || | ||
@@ -468,2 +471,3 @@ target.doneItIds.includes(lastItId) || | ||
target.outputs = [...target.outputs, string]; | ||
// eslint-disable-next-line no-console | ||
console.log(string); | ||
@@ -470,0 +474,0 @@ if (target.reporter) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38020
4
705