Skip to content

Commit 7d9039a

Browse files
committedDec 9, 2024
chore: changing test script command, removing console enforcement rule
1 parent e0c8c7b commit 7d9039a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
 

‎.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: pnpm install
3636

3737
- name: Vitest run
38-
run: pnpm run test:unit --silent
38+
run: pnpm run test:unit:ci --silent
3939

4040
- name: Cypress run
4141
run: pnpm run test:e2e

‎eslint.config.mjs

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import { storyblokLintConfig } from '@storyblok/eslint-config';
22

33
export default storyblokLintConfig({
4-
rules: {
5-
'no-console': 'off',
6-
},
74
ignores: ['**/node_modules/**', 'cypress/', 'README.md'],
85
});

‎package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
"dev": "vite build --watch",
3737
"build": "vite build && tsc --project tsconfig.json",
3838
"test": "pnpm run test:unit && pnpm run test:e2e",
39-
"test:unit": "vitest --watch false",
39+
"test:unit": "vitest",
40+
"test:unit:ci": "vitest run",
41+
"test:unit:ui": "vitest --ui",
4042
"test:e2e": "start-server-and-test playground-next13-app-router http://localhost:3000/ cy:run",
4143
"test:e2e-watch": "start-server-and-test playground-next13-app-router http-get://localhost:3000/ cy:open",
4244
"cy:run": "cypress run",

‎src/__tests__/testing-components/Test.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const Test = forwardRef<HTMLElement, TestProps>(
4040
);
4141

4242
useEffect(() => {
43+
// eslint-disable-next-line no-console
4344
registerStoryblokBridge(43423, newStory => console.log(newStory));
4445
}, []);
4546

0 commit comments

Comments
 (0)