Skip to content

Commit 8a91675

Browse files
author
Ben Siggery
committed
remove unused script and add missing test:ci script
1 parent 4e44524 commit 8a91675

File tree

29 files changed

+15
-52
lines changed

29 files changed

+15
-52
lines changed

.changeset/moody-bobcats-call.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@justeattakeaway/generator-pie-component": minor
3+
---
4+
5+
[Removed] - Unused `test` script

apps/pie-storybook/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"build:testing": "BROWSER_TESTING=true storybook build --output-dir dist && cp -R ./static ./dist",
1111
"lint:scripts": "run -T eslint .",
1212
"lint:scripts:fix": "run -T eslint . --fix",
13-
"test": "run -T vitest run test"
13+
"test": "run -T vitest run test",
14+
"test:ci": "yarn test"
1415
},
1516
"author": "Just Eat Takeaway.com - Design System Team",
1617
"license": "Apache-2.0",

apps/pie-storybook/test/utilities/index.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@ describe('createVariantStory', () => {
8686

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

89-
// Check if the parameters include the background color
90-
expect(story.parameters.backgrounds.default).toBe('background-subtle');
91-
9289
// Check if argTypes are applied
9390
expect(story.argTypes).toEqual(storyOpts.argTypes);
9491
});

packages/components/pie-assistive-text/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
2525
"lint:style:fix": "yarn lint:style --fix",
2626
"watch": "run -T vite build --watch",
27-
"test": "echo \"Error: no test specified\" && exit 0",
28-
"test:ci": "yarn test",
2927
"test:browsers-setup": "npx playwright-lit-setup",
3028
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
3129
"test:browsers:ci": "yarn test:browsers",

packages/components/pie-button/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
2525
"lint:style:fix": "yarn lint:style --fix",
2626
"watch": "run -T vite build --watch",
27-
"test": "echo \"Error: no test specified\" && exit 0",
28-
"test:ci": "yarn test",
2927
"test:browsers-setup": "npx playwright-lit-setup",
3028
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
3129
"test:browsers:ci": "yarn test:browsers",

packages/components/pie-card/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
2525
"lint:style:fix": "yarn lint:style --fix",
2626
"watch": "run -T vite build --watch",
27-
"test": "echo \"Error: no test specified\" && exit 0",
28-
"test:ci": "yarn test",
2927
"test:browsers-setup": "npx playwright-lit-setup",
3028
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
3129
"test:browsers:ci": "yarn test:browsers",

packages/components/pie-checkbox-group/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
2525
"lint:style:fix": "yarn lint:style --fix",
2626
"watch": "run -T vite build --watch",
27-
"test": "echo \"Error: no test specified\" && exit 0",
28-
"test:ci": "yarn test",
2927
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
3028
"test:browsers:ci": "yarn test:browsers",
3129
"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",

packages/components/pie-checkbox/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
2525
"lint:style:fix": "yarn lint:style --fix",
2626
"watch": "run -T vite build --watch",
27-
"test": "echo \"Error: no test specified\" && exit 0",
28-
"test:ci": "yarn test",
2927
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
3028
"test:browsers:ci": "yarn test:browsers",
3129
"test:browsers-setup": "npx playwright-lit-setup",

packages/components/pie-chip/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
"lint:style": "run -T stylelint ./src/**/*.{css,scss}",
2525
"lint:style:fix": "yarn lint:style --fix",
2626
"watch": "run -T vite build --watch",
27-
"test": "echo \"Error: no test specified\" && exit 0",
28-
"test:ci": "yarn test",
2927
"test:browsers-setup": "npx playwright-lit-setup",
3028
"test:browsers": "npx playwright test -c ./playwright-lit.config.ts",
3129
"test:browsers:ci": "yarn test:browsers",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// vite.config.js
2+
import viteConfig from "file:///Users/ben.siggery/Code/pie/configs/pie-components-config/vite.config.js";
3+
var vite_config_default = viteConfig;
4+
export {
5+
vite_config_default as default
6+
};
7+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCIvVXNlcnMvYmVuLnNpZ2dlcnkvQ29kZS9waWUvcGFja2FnZXMvY29tcG9uZW50cy9waWUtY29va2llLWJhbm5lclwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2Jlbi5zaWdnZXJ5L0NvZGUvcGllL3BhY2thZ2VzL2NvbXBvbmVudHMvcGllLWNvb2tpZS1iYW5uZXIvdml0ZS5jb25maWcuanNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL1VzZXJzL2Jlbi5zaWdnZXJ5L0NvZGUvcGllL3BhY2thZ2VzL2NvbXBvbmVudHMvcGllLWNvb2tpZS1iYW5uZXIvdml0ZS5jb25maWcuanNcIjtpbXBvcnQgdml0ZUNvbmZpZyBmcm9tICdAanVzdGVhdHRha2Vhd2F5L3BpZS1jb21wb25lbnRzLWNvbmZpZy92aXRlLmNvbmZpZyc7XG5cbmV4cG9ydCBkZWZhdWx0IHZpdGVDb25maWc7XG4iXSwKICAibWFwcGluZ3MiOiAiO0FBQXFYLE9BQU8sZ0JBQWdCO0FBRTVZLElBQU8sc0JBQVE7IiwKICAibmFtZXMiOiBbXQp9Cg==

0 commit comments

Comments
 (0)