Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/analyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
"release": "npm run compile",
"lint": "gulp lint",
"tslint": "tslint -p .",
"test": "npm run clean && npm run build && npm run lint && mocha",
"quicktest": "export QUICK_TESTS=true; npm run build && mocha",
"test": "npm run clean && npm run build && npm run lint && mocha \"lib/test/**/*_test.js\"",
"quicktest": "export QUICK_TESTS=true; npm run build && mocha \"lib/test/**/*_test.js\"",
"initBench": "if [ ! -d bower_components ]; then bower install -s -f PolymerElements/app-elements PolymerElements/iron-elements PolymerElements/gold-elements PolymerElements/paper-elements PolymerElements/neon-elements GoogleWebComponents/google-web-components ; fi",
"benchmark": "npm run build && npm run initBench && node --expose-gc lib/perf/parse-all-benchmark.js",
"test:unit": "mocha",
"test:watch": "tsc-then -- mocha -c",
"format": "find src test | grep '\\.js$\\|\\.ts$' | xargs clang-format --style=file -i",
"test:unit": "mocha \"lib/test/**/*_test.js\"",
"test:watch": "tsc-then -- mocha \"lib/test/**/*_test.js\"",
"format": "find src test | grep \"\\.js$\\|\\.ts$\" | xargs clang-format --style=file -i",
"prepublishOnly": "tsc && npm test"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/analyzer/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--ui tdd
--colors
--require source-map-support/register
--timeout 5000
lib/test/**/*_test.js
6 changes: 3 additions & 3 deletions packages/browser-capabilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"scripts": {
"build": "rm -Rf lib/ && tsc",
"build:watch": "tsc --watch",
"format": "find src -name '*.ts' | xargs clang-format --style=file -i",
"test": "npm run build && mocha",
"test:unit": "mocha",
"format": "find src -name \"*.ts\" | xargs clang-format --style=file -i",
"test": "npm run build && mocha \"lib/test/**/*_test.js\"",
"test:unit": "mocha \"lib/test/**/*_test.js\"",
"test:watch": "watchy -w src -- npm run test"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/browser-capabilities/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--ui tdd
--colors
--require source-map-support/register
--timeout 5000
lib/test/**/*_test.js
6 changes: 3 additions & 3 deletions packages/build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"lint": "gulp lint",
"build": "gulp build",
"test": "gulp lint test",
"test:unit": "gulp test:unit",
"test:watch": "tsc-then -- mocha -c",
"test:unit": "mocha \"lib/test/**/*_test.js\"",
"test:watch": "tsc-then -- mocha \"lib/test/**/*_test.js\"",
"prepublishOnly": "npm test",
"format": "find src/ -iname '*.ts' -o -iname '*.js' | xargs clang-format --style=file -i"
"format": "find src/ -iname \"*.ts\" -o -iname \"*.js\" | xargs clang-format --style=file -i"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/build/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--ui tdd
--colors
--require source-map-support/register
--timeout 5000
lib/test/**/*_test.js
8 changes: 4 additions & 4 deletions packages/bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
},
"scripts": {
"build": "tsc",
"format": "find src | grep '\\.js$\\|\\.ts$' | xargs ./node_modules/.bin/clang-format --style=file -i",
"test": "npm run build && tslint -c tslint.json src/*.ts src/**/*.ts && mocha",
"test:unit": "mocha",
"test:watch": "tsc-then -- mocha"
"format": "find src | grep \"\\.js$\\|\\.ts$\" | xargs ./node_modules/.bin/clang-format --style=file -i",
"test": "npm run build && tslint -c tslint.json \"src/**/*.ts\" && mocha \"lib/test/**/*_test.js\"",
"test:unit": "mocha \"lib/test/**/*_test.js\"",
"test:watch": "tsc-then -- mocha \"lib/test/**/*_test.js\""
},
"author": "The Polymer Project Authors",
"license": "BSD-3-Clause",
Expand Down
2 changes: 1 addition & 1 deletion packages/bundler/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--ui tdd
--colors
--require source-map-support/register
--timeout 20000
lib/test
8 changes: 4 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"test": "gulp test lint",
"test:smoke": "gulp test",
"test:smoke-lint": "gulp test lint",
"test:integration": "gulp test:integration",
"test:unit": "gulp test:unit",
"format": "find src gulpfile.js \\( -iname '*.ts' -o -iname '*.js' \\) -not -path '*fixtures*' | xargs clang-format --style=file -i",
"test:watch": "tsc-then -- mocha -c --ui tdd lib/test/integration/*_test.js lib/test/unit/*_test.js lib/test/unit/*/*_test.js"
"test:integration": "mocha \"lib/test/integration/**/*_test.js\"",
"test:unit": "mocha \"lib/test/unit/**/*_test.js\"",
"format": "find src gulpfile.js \\( -iname \"*.ts\" -o -iname \"*.js\" \\) -not -path \"*fixtures*\" | xargs clang-format --style=file -i",
"test:watch": "tsc-then -- mocha \"lib/test/**/*_test.js\""
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--ui tdd
--colors
--require source-map-support/register
--timeout 5000

8 changes: 4 additions & 4 deletions packages/editor-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"build": "tsc",
"prepublishOnly": "npm run clean && npm run build",
"lint": "tslint --project ./tsconfig.json",
"test": "npm run clean && npm run build && mocha && npm run lint",
"test:unit": "mocha",
"test:watch": "tsc-then -- mocha",
"format": "find src test | grep '\\.js$\\|\\.ts$' | xargs ./node_modules/.bin/clang-format --style=file -i"
"test": "npm run clean && npm run build && mocha \"lib/test/**/*_test.js\" && npm run lint",
"test:unit": "mocha \"lib/test/**/*_test.js\"",
"test:watch": "tsc-then -- mocha \"lib/test/**/*_test.js\"",
"format": "find src test | grep \"\\.js$\\|\\.ts$\" | xargs ./node_modules/.bin/clang-format --style=file -i"
},
"devDependencies": {
"@types/chai": "=4.0.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/editor-service/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--ui tdd
--colors
--require source-map-support/register
--retries 3
--timeout 5000
lib/test/*_test.js lib/test/**/*_test.js
6 changes: 3 additions & 3 deletions packages/linter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
"clean": "touch lib && rm -rf lib && mkdir lib",
"format": "find src | grep \"\\.[jt]s$\" | xargs clang-format --style=file -i",
"lint": "tslint -c tslint.json src/*.ts src/**/*.ts",
"test": "npm run build && mocha && npm run lint",
"test:unit": "mocha",
"test:watch": "tsc-then -- mocha",
"test": "npm run build && mocha \"lib/test/**/*_test.js\" && npm run lint",
"test:unit": "mocha \"lib/test/**/*_test.js\"",
"test:watch": "tsc-then -- mocha \"lib/test/**/*_test.js\"",
"run-on-polymer": "npm run build && (cd test/integration && bower install --silent) && INTEGRATION_TEST=true mocha lib/test/integration_test.js"
},
"repository": {
Expand Down
3 changes: 1 addition & 2 deletions packages/linter/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
-c
--ui tdd
--colors
--timeout 5000
lib/test/*.js lib/test/**/*.js
8 changes: 4 additions & 4 deletions packages/polyserve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"start": "./bin/polyserve",
"clean": "rimraf lib",
"build": "npm run clean && tsc",
"test": "npm run build && mocha && tslint \"src/**/*.ts\"",
"test:unit": "mocha",
"test:watch": "tsc-then -- mocha -c",
"format": "find src test -iname '*.ts' | xargs clang-format --style=file -i"
"test": "npm run build && mocha \"lib/test/**/*_test.js\" && tslint \"src/**/*.ts\"",
"test:unit": "mocha \"lib/test/**/*_test.js\"",
"test:watch": "tsc-then -- mocha \"lib/test/**/*_test.js\"",
"format": "find src test -iname \"*.ts\" | xargs clang-format --style=file -i"
},
"keywords": [
"polymer",
Expand Down
2 changes: 1 addition & 1 deletion packages/polyserve/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--ui tdd
--colors
--require source-map-support/register
--timeout 5000
lib/test/*_test.js lib/test/**/*_test.js
19 changes: 19 additions & 0 deletions packages/project-config/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions packages/project-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"homepage": "https://github.com/Polymer/polymer-project-config#readme",
"scripts": {
"build": "tsc && typescript-json-schema src/index.ts ProjectOptions --ignoreErrors -o lib/schema.json",
"test": "npm run build && mocha --ui tdd",
"test:unit": "mocha --ui tdd",
"format": "find src test \\( -iname '*.ts' -o -iname '*.js' \\) | xargs clang-format --style=file -i"
"test": "npm run build && mocha \"test/**/*_test.js\"",
"test:unit": "mocha \"test/**/*_test.js\"",
"format": "find src test \\( -iname \"*.ts\" -o -iname \"*.js\" \\) | xargs clang-format --style=file -i"
},
"dependencies": {
"@types/node": "^9.6.4",
Expand All @@ -31,6 +31,7 @@
"clang-format": "1.0.49",
"mocha": "^3.0.2",
"polymer-analyzer": "^3.0.0-pre.22",
"source-map-support": "^0.5.5",
"tslint": "^5.9.1",
"typescript": "^2.0.2",
"typescript-json-schema": "^0.9.0"
Expand Down
4 changes: 4 additions & 0 deletions packages/project-config/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--ui tdd
--colors
--require source-map-support/register
--timeout 5000
4 changes: 4 additions & 0 deletions packages/web-component-tester/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--ui tdd
--colors
--require source-map-support/register
--timeout 5000
9 changes: 5 additions & 4 deletions packages/web-component-tester/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
"build": "tsc && gulp build",
"test": "tsc && gulp test",
"prepublishOnly": "gulp prepublish",
"test:unit": "gulp test:unit",
"test:integration": "gulp test:integration",
"test:watch": "watch 'gulp test:unit' runner/ browser/ bin/ test/ tasks/",
"format": "find runner test | grep '\\.js$\\|\\.ts$' | xargs ./node_modules/.bin/clang-format --style=file -i"
"test:unit": "mocha \"test/unit/**/*.js\"",
"test:integration": "gulp bower && mocha \"test/integration/**/*.js\" --timeout 90000",
"test:watch": "watch \"mocha \\\"test/unit/**/*.js\\\"\" runner/ browser/ bin/ test/ tasks/",
"format": "find runner test | grep \"\\.js$\\|\\.ts$\" | xargs ./node_modules/.bin/clang-format --style=file -i"
},
"dependencies": {
"@polymer/sinonjs": "^1.14.1",
Expand Down Expand Up @@ -126,6 +126,7 @@
"rimraf": "^2.5.4",
"rollup": "^0.25.1",
"run-sequence": "^1.0.1",
"source-map-support": "^0.5.4",
"tslint": "^5.9.1",
"typescript": "^2.1.4",
"watch": "^0.18.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/web-component-tester/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--ui tdd
--colors
--require source-map-support/register
--timeout 5000