Skip to content

Commit

Permalink
test: update benchmarking for type: module
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Apr 15, 2021
1 parent e90c345 commit 6feafcf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ test-results.xml
/test/benchmark/**/*.js
/test/benchmark/**/*.js.map
/test/benchmark/**/*.d.ts
test/benchmark/cli.cjs
!test/visual/**/*.js
test/visual/test.js
test/visual/story-imports.js
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"prepare": "husky install",
"prestorybook": "wca analyze 'packages/*/*.d.ts' --format json --outFile custom-elements.json && node ./scripts/add-custom-properties.js --src='custom-elements.json'",
"prestorybook:build": "yarn prestorybook",
"pretest:bench": "test -f test/benchmark/cli.js && mv test/benchmark/cli.js test/benchmark/cli.cjs ||:",
"pretest:visual": "yarn build && yarn storybook:stories:build && yarn test:build",
"process-icons": "run-p icons icons:ui icons:workflow",
"process-spectrum": "yarn spectrum-vars && yarn spectrum-css && pretty-quick --pattern \"packages/**/*.css\"",
Expand All @@ -66,7 +67,7 @@
"storybook:stories:build": "tsc --build .storybook/tsconfig.json",
"storybook:stories:watch": "tsc --build .storybook/tsconfig.json -w",
"test": "yarn test:focus unit",
"test:bench": "node test/benchmark/cli.js",
"test:bench": "node test/benchmark/cli.cjs",
"test:build": "tsc --build test/tsconfig-plugins.json && tsc --build test/tsconfig-test.json",
"test:ci": "yarn test:build && yarn test:start",
"test:focus": "yarn build && yarn test:ci --coverage --group",
Expand Down Expand Up @@ -206,7 +207,7 @@
"stylelint": "^13.12.0",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-standard": "^21.0.0",
"tachometer": "^0.5.5",
"tachometer": "^0.5.8",
"ts-loader": "^8.0.0",
"typescript": "^4.2.3",
"walker": "^1.0.7",
Expand Down
8 changes: 4 additions & 4 deletions packages/icons-workflow/test/benchmark/test-injected-many.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ governing permissions and limitations under the License.
import '@spectrum-web-components/icon/sp-icon.js';
import { AbcIcon } from '@spectrum-web-components/icons-workflow/src/icons/ABC.js';
import { ActionsIcon } from '@spectrum-web-components/icons-workflow/src/icons/Actions.js';
import { AdDisplayIcon } from '@spectrum-web-components/icons-workflow/src/icons/AdDisplay.js';
import { AdPrintIcon } from '@spectrum-web-components/icons-workflow/src/icons/AdPrint.js';
import { DisplayAdvertIcon } from '@spectrum-web-components/icons-workflow/src/icons/DisplayAdvert.js';
import { PrintAdvertIcon } from '@spectrum-web-components/icons-workflow/src/icons/PrintAdvert.js';
import { AddIcon } from '@spectrum-web-components/icons-workflow/src/icons/Add.js';
import { AddCircleIcon } from '@spectrum-web-components/icons-workflow/src/icons/AddCircle.js';
import { AddToIcon } from '@spectrum-web-components/icons-workflow/src/icons/AddTo.js';
Expand Down Expand Up @@ -56,8 +56,8 @@ setCustomTemplateLiteralTag(html);
measureFixtureCreation(html`
<sp-icon>${AbcIcon({ hidden: true })}</sp-icon>
<sp-icon>${ActionsIcon({ hidden: true })}</sp-icon>
<sp-icon>${AdDisplayIcon({ hidden: true })}</sp-icon>
<sp-icon>${AdPrintIcon({ hidden: true })}</sp-icon>
<sp-icon>${DisplayAdvertIcon({ hidden: true })}</sp-icon>
<sp-icon>${PrintAdvertIcon({ hidden: true })}</sp-icon>
<sp-icon>${AddIcon({ hidden: true })}</sp-icon>
<sp-icon>${AddCircleIcon({ hidden: true })}</sp-icon>
<sp-icon>${AddToIcon({ hidden: true })}</sp-icon>
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21444,7 +21444,7 @@ table@^6.0.4, table@^6.0.7:
slice-ansi "^4.0.0"
string-width "^4.2.0"

tachometer@^0.5.5:
tachometer@^0.5.8:
version "0.5.8"
resolved "https://registry.yarnpkg.com/tachometer/-/tachometer-0.5.8.tgz#7679a1e0334be360e8fc7229004a04f6899a94d3"
integrity sha512-CttguFunKN/qlK2HXwzbEDGPOVCIKjTTKVzGyR3evV0/IimSryOeNgWOZzvVkURKlg86znsOHn+Ne2DHgknp6A==
Expand Down

0 comments on commit 6feafcf

Please sign in to comment.