Skip to content

Commit

Permalink
remove unused script and add missing test:ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Siggery committed Feb 7, 2025
1 parent 4e44524 commit 8a91675
Show file tree
Hide file tree
Showing 29 changed files with 15 additions and 52 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-bobcats-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@justeattakeaway/generator-pie-component": minor
---

[Removed] - Unused `test` script
3 changes: 2 additions & 1 deletion apps/pie-storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"build:testing": "BROWSER_TESTING=true storybook build --output-dir dist && cp -R ./static ./dist",
"lint:scripts": "run -T eslint .",
"lint:scripts:fix": "run -T eslint . --fix",
"test": "run -T vitest run test"
"test": "run -T vitest run test",
"test:ci": "yarn test"
},
"author": "Just Eat Takeaway.com - Design System Team",
"license": "Apache-2.0",
Expand Down
3 changes: 0 additions & 3 deletions apps/pie-storybook/test/utilities/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ describe('createVariantStory', () => {

const story = createVariantStory(template, propOptions, storyOpts);

// Check if the parameters include the background color
expect(story.parameters.backgrounds.default).toBe('background-subtle');

// Check if argTypes are applied
expect(story.argTypes).toEqual(storyOpts.argTypes);
});
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-assistive-text/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers-setup": "npx playwright-lit-setup",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers-setup": "npx playwright-lit-setup",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers-setup": "npx playwright-lit-setup",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-checkbox-group/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
"test:visual": "run -T cross-env-shell PERCY_TOKEN=${PERCY_TOKEN_PIE_CHECKBOX_GROUP} percy exec --allowed-hostname cloudfront.net -- npx playwright test -c ./playwright-lit-visual.config.ts",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
"test:browsers-setup": "npx playwright-lit-setup",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-chip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers-setup": "npx playwright-lit-setup",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// vite.config.js
import viteConfig from "file:///Users/ben.siggery/Code/pie/configs/pie-components-config/vite.config.js";
var vite_config_default = viteConfig;
export {
vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCIvVXNlcnMvYmVuLnNpZ2dlcnkvQ29kZS9waWUvcGFja2FnZXMvY29tcG9uZW50cy9waWUtY29va2llLWJhbm5lclwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2Jlbi5zaWdnZXJ5L0NvZGUvcGllL3BhY2thZ2VzL2NvbXBvbmVudHMvcGllLWNvb2tpZS1iYW5uZXIvdml0ZS5jb25maWcuanNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL1VzZXJzL2Jlbi5zaWdnZXJ5L0NvZGUvcGllL3BhY2thZ2VzL2NvbXBvbmVudHMvcGllLWNvb2tpZS1iYW5uZXIvdml0ZS5jb25maWcuanNcIjtpbXBvcnQgdml0ZUNvbmZpZyBmcm9tICdAanVzdGVhdHRha2Vhd2F5L3BpZS1jb21wb25lbnRzLWNvbmZpZy92aXRlLmNvbmZpZyc7XG5cbmV4cG9ydCBkZWZhdWx0IHZpdGVDb25maWc7XG4iXSwKICAibWFwcGluZ3MiOiAiO0FBQXFYLE9BQU8sZ0JBQWdCO0FBRTVZLElBQU8sc0JBQVE7IiwKICAibmFtZXMiOiBbXQp9Cg==
2 changes: 0 additions & 2 deletions packages/components/pie-divider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers-setup": "npx playwright-lit-setup",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-form-label/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers-setup": "npx playwright-lit-setup",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-icon-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers-setup": "npx playwright-lit-setup",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:visual": "run -T cross-env-shell PERCY_TOKEN=${PERCY_TOKEN_PIE_ICON_BUTTON} percy exec --allowed-hostname cloudfront.net -- npx playwright test -c ./playwright-lit-visual.config.ts",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers-setup": "npx playwright-lit-setup",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-lottie-player/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
"lint:scripts": "run -T eslint .",
"lint:scripts:fix": "yarn lint:scripts --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
"test:visual": "run -T cross-env-shell PERCY_TOKEN=${PERCY_TOKEN_PIE_LOTTIE_PLAYER} percy exec --allowed-hostname cloudfront.net -- npx playwright test -c ./playwright-lit-visual.config.ts",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-modal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers-setup": "npx playwright-lit-setup",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-notification/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers-setup": "npx playwright-lit-setup",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-radio-group/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
"test:visual": "run -T cross-env-shell PERCY_TOKEN=${PERCY_TOKEN_PIE_RADIO_GROUP} percy exec --allowed-hostname cloudfront.net -- npx playwright test -c ./playwright-lit-visual.config.ts",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-radio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
"test:visual": "run -T cross-env-shell PERCY_TOKEN=${PERCY_TOKEN_PIE_RADIO} percy exec --allowed-hostname cloudfront.net -- npx playwright test -c ./playwright-lit-visual.config.ts",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-spinner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers-setup": "npx playwright-lit-setup",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-switch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers-setup": "npx playwright-lit-setup",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-tag/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers-setup": "npx playwright-lit-setup",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-text-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers-setup": "npx playwright-lit-setup",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-textarea/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
"test:visual": "run -T cross-env-shell PERCY_TOKEN=${PERCY_TOKEN_PIE_TEXTAREA} percy exec --allowed-hostname cloudfront.net -- npx playwright test -c ./playwright-lit-visual.config.ts",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-thumbnail/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
"test:visual": "run -T cross-env-shell PERCY_TOKEN=${PERCY_TOKEN_PIE_THUMBNAIL} percy exec --allowed-hostname cloudfront.net -- npx playwright test -c ./playwright-lit-visual.config.ts",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-toast-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
"test:visual": "run -T cross-env-shell PERCY_TOKEN=${PERCY_TOKEN_PIE_TOAST_PROVIDER} percy exec --allowed-hostname cloudfront.net -- npx playwright test -c ./playwright-lit-visual.config.ts",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/pie-toast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
"test:visual": "run -T cross-env-shell PERCY_TOKEN=${PERCY_TOKEN_PIE_TOAST} percy exec --allowed-hostname cloudfront.net -- npx playwright test -c ./playwright-lit-visual.config.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
"lint:style:fix": "yarn lint:style --fix",
"watch": "run -T vite build --watch",
"test": "echo \"Error: no test specified\" && exit 0",
"test:ci": "yarn test",
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
"test:browsers:ci": "yarn test:browsers",
"test:visual": "run -T cross-env-shell PERCY_TOKEN=${PERCY_TOKEN_PIE_<%= percyComponentName %>} percy exec --allowed-hostname cloudfront.net -- npx playwright test -c ./playwright-lit-visual.config.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/tools/pie-icons-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"lint:scripts:fix": "run -T eslint . --fix",
"prepublishOnly": "yarn lint:scripts && yarn build",
"test": "run -T vitest run",
"test:ci": "yarn test",
"test:update": "run -T vitest -u run",
"test:watch": "run -T vitest"
},
Expand Down

0 comments on commit 8a91675

Please sign in to comment.