diff --git a/.gitignore b/.gitignore index 01e523c7f5..56bc2b0bc1 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/package.json b/package.json index fb94dc359a..bcf91b650c 100644 --- a/package.json +++ b/package.json @@ -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\"", @@ -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", @@ -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", diff --git a/packages/icons-workflow/test/benchmark/test-injected-many.ts b/packages/icons-workflow/test/benchmark/test-injected-many.ts index 0c49516dc5..a5c7ba820b 100644 --- a/packages/icons-workflow/test/benchmark/test-injected-many.ts +++ b/packages/icons-workflow/test/benchmark/test-injected-many.ts @@ -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'; @@ -56,8 +56,8 @@ setCustomTemplateLiteralTag(html); measureFixtureCreation(html` ${AbcIcon({ hidden: true })} ${ActionsIcon({ hidden: true })} - ${AdDisplayIcon({ hidden: true })} - ${AdPrintIcon({ hidden: true })} + ${DisplayAdvertIcon({ hidden: true })} + ${PrintAdvertIcon({ hidden: true })} ${AddIcon({ hidden: true })} ${AddCircleIcon({ hidden: true })} ${AddToIcon({ hidden: true })} diff --git a/yarn.lock b/yarn.lock index a001d315f2..b8ce973091 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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==