Skip to content

Commit

Permalink
Merge branch 'next' into feature-coverage-directory
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Aug 4, 2023
2 parents ad0a50c + 6dc3a4e commit 2b4ffdb
Show file tree
Hide file tree
Showing 39 changed files with 3,667 additions and 2,336 deletions.
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report-🐞.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: "Bug report \U0001F41E"
about: Create a report to help us improve
title: "[bug] "
labels: bug, needs triage
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**System**
Please paste the results of `npx storybook@latest info` here.

**Additional context**
Add any other context about the problem here.
8 changes: 4 additions & 4 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
echo "prev_sb_version=$(yarn list @storybook/react --depth=0 2> /dev/null | grep @storybook/react | awk -F'@' '{print $3}')" >> $GITHUB_ENV
echo "prev_sb_csf_version=$(yarn list @storybook/csf --depth=0 2> /dev/null | grep @storybook/csf | awk -F'@' '{print $3}')" >> $GITHUB_ENV
- name: Upgrade to storybook@future
- name: Upgrade to storybook@next
run: |
npx storybook@future upgrade --prerelease --yes
npx storybook@next upgrade --prerelease --yes
# TODO: This should not be necessary once @storybook/csf is properly updated
- name: Fix local @storybook/csf version
Expand Down Expand Up @@ -115,9 +115,9 @@ jobs:
echo "prev_sb_version=$(yarn list @storybook/react --depth=0 2> /dev/null | grep @storybook/react | awk -F'@' '{print $3}')" >> $GITHUB_ENV
echo "prev_sb_csf_version=$(yarn list @storybook/csf --depth=0 2> /dev/null | grep @storybook/csf | awk -F'@' '{print $3}')" >> $GITHUB_ENV
- name: Upgrade to storybook@future
- name: Upgrade to storybook@next
run: |
npx storybook@future upgrade --prerelease --yes
npx storybook@next upgrade --prerelease --yes
# TODO: This should not be necessary once @storybook/csf is properly updated
- name: Fix local @storybook/csf version
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/tests-extended.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
name: Tests-extended

on: [push]
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@v2

- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
node-version: ${{ matrix.node-version }}

- name: Install dependencies
uses: bahmutov/npm-install@v1
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
name: Tests

on: [push]
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@v2

- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
node-version: ${{ matrix.node-version }}

- name: Install dependencies
uses: bahmutov/npm-install@v1
Expand Down
13 changes: 5 additions & 8 deletions .storybook/main.js β†’ .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let stories = [
'../stories/docs/**/*.stories.mdx',
'../stories/docs/**/*.mdx',
// default title prefix
{
titlePrefix: 'Atoms',
Expand All @@ -13,15 +13,9 @@ let stories = [
// general glob
'../stories/pages/**/*.stories.@(js|jsx|ts|tsx)',
];

if (process.env.STRESS_TEST) {
stories.push('../stories/stress-test/*.stories.@(js|jsx|ts|tsx)');
}

if (process.env.TEST_FAILURES) {
stories = ['../stories/expected-failures/*.stories.@(js|jsx|ts|tsx)'];
}

const addons = [
process.env.WITHOUT_DOCS
? {
Expand All @@ -33,8 +27,8 @@ const addons = [
: '@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-coverage',
'@storybook/addon-mdx-gfm',
];

module.exports = {
stories,
addons,
Expand All @@ -49,4 +43,7 @@ module.exports = {
name: '@storybook/react-webpack5',
options: {},
},
docs: {
autodocs: true,
},
};
File renamed without changes.
4 changes: 2 additions & 2 deletions .storybook/test-runner.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { toMatchImageSnapshot } from 'jest-image-snapshot';
import { getStoryContext } from '../dist/cjs/playwright/hooks';
import type { TestRunnerConfig } from '../dist/ts';
import { getStoryContext } from '../dist/playwright/hooks';
import type { TestRunnerConfig } from '../dist';

const snapshotsDir = process.env.SNAPSHOTS_DIR || '__snapshots__';
const customSnapshotsDir = `${process.cwd()}/${snapshotsDir}`;
Expand Down
195 changes: 195 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,198 @@
# v0.12.0 (Thu Jul 27 2023)

#### πŸš€ Enhancement


#### πŸ› Bug Fix

- maintenance: remove no-manager-cache flag in example storybook [#331](https://github.com/storybookjs/test-runner/pull/331) ([@MH4GF](https://github.com/MH4GF))
- Fix extra args not being passed to jest [#322](https://github.com/storybookjs/test-runner/pull/322) ([@zyulyaev](https://github.com/zyulyaev) [@yannbf](https://github.com/yannbf))
- Fix empty coverage report [#324](https://github.com/storybookjs/test-runner/pull/324) ([@bryanjtc](https://github.com/bryanjtc) [@yannbf](https://github.com/yannbf))
- docs: fix github actions example for shard usage [#320](https://github.com/storybookjs/test-runner/pull/320) ([@MH4GF](https://github.com/MH4GF))

#### Authors: 5

- Bryan Thomas ([@bryanjtc](https://github.com/bryanjtc))
- Hirotaka Miyagi ([@MH4GF](https://github.com/MH4GF))
- Nikita Zyulyaev ([@zyulyaev](https://github.com/zyulyaev))
- Valentin Palkovic ([@valentinpalkovic](https://github.com/valentinpalkovic))
- Yann Braga ([@yannbf](https://github.com/yannbf))

---

# v0.11.0 (Tue Jun 20 2023)

#### πŸš€ Enhancement

- Release 0.11.0 [#318](https://github.com/storybookjs/test-runner/pull/318) ([@bryanjtc](https://github.com/bryanjtc) [@yannbf](https://github.com/yannbf) [@ndelangen](https://github.com/ndelangen) [@unshame](https://github.com/unshame) [@valentinpalkovic](https://github.com/valentinpalkovic) [@vanessayuenn](https://github.com/vanessayuenn))
- Bundle with tsup and replace babel-jest [#250](https://github.com/storybookjs/test-runner/pull/250) ([@bryanjtc](https://github.com/bryanjtc) [@yannbf](https://github.com/yannbf) [@ndelangen](https://github.com/ndelangen))

#### πŸ› Bug Fix

- Change dependencies from `future` npm tag to `next` [#315](https://github.com/storybookjs/test-runner/pull/315) ([@yannbf](https://github.com/yannbf))
- fix: nyc command with shard option [#257](https://github.com/storybookjs/test-runner/pull/257) ([@bryanjtc](https://github.com/bryanjtc) [@yannbf](https://github.com/yannbf))
- Improve ejected config types [#297](https://github.com/storybookjs/test-runner/pull/297) ([@yannbf](https://github.com/yannbf))
- fix: Remove last reference to regenerator-runtime [#303](https://github.com/storybookjs/test-runner/pull/303) ([@bryanjtc](https://github.com/bryanjtc))
- fix(test-storybook): Fix test-runner-jest.config.js file not being found in STORYBOOK_CONFIG_DIR on Windows [#296](https://github.com/storybookjs/test-runner/pull/296) ([@unshame](https://github.com/unshame))
- Upgrade glob to v10 [#299](https://github.com/storybookjs/test-runner/pull/299) ([@valentinpalkovic](https://github.com/valentinpalkovic))

#### Authors: 6

- Bryan Thomas ([@bryanjtc](https://github.com/bryanjtc))
- Norbert de Langen ([@ndelangen](https://github.com/ndelangen))
- UnShame ([@unshame](https://github.com/unshame))
- Valentin Palkovic ([@valentinpalkovic](https://github.com/valentinpalkovic))
- Vanessa Yuen ([@vanessayuenn](https://github.com/vanessayuenn))
- Yann Braga ([@yannbf](https://github.com/yannbf))

---

# v0.10.0 (Mon Apr 03 2023)

#### πŸš€ Enhancement

- New prerelease structure / upgrade to SB7 [#210](https://github.com/storybookjs/test-runner/pull/210) ([@shilman](https://github.com/shilman))

#### πŸ› Bug Fix

- Bump @storybook/csf to 0.1.0 [#288](https://github.com/storybookjs/test-runner/pull/288) ([@kasperpeulen](https://github.com/kasperpeulen))
- support Storybook 7.0.0 [#283](https://github.com/storybookjs/test-runner/pull/283) ([@yannbf](https://github.com/yannbf))
- Update getStorybookMain to throw an error if stories are not found in main.js [#278](https://github.com/storybookjs/test-runner/pull/278) ([@valentinpalkovic](https://github.com/valentinpalkovic))
- Extend hooks api with `prepare` and `getHttpHeaders` properties [#245](https://github.com/storybookjs/test-runner/pull/245) ([@yannbf](https://github.com/yannbf))
- Use preview api instead of store [#273](https://github.com/storybookjs/test-runner/pull/273) ([@kasperpeulen](https://github.com/kasperpeulen))
- Support other test-runner config extensions [#259](https://github.com/storybookjs/test-runner/pull/259) ([@yannbf](https://github.com/yannbf))
- Use ipv4 loopback address [#252](https://github.com/storybookjs/test-runner/pull/252) ([@IanVS](https://github.com/IanVS))
- Fix safe json stringify code [#239](https://github.com/storybookjs/test-runner/pull/239) ([@hansottowirtz](https://github.com/hansottowirtz))
- feat: add shard cli option [#243](https://github.com/storybookjs/test-runner/pull/243) ([@Niznikr](https://github.com/Niznikr) [@yannbf](https://github.com/yannbf))
- Updating deps to handle TS 4.9 [#237](https://github.com/storybookjs/test-runner/pull/237) ([@kasperpeulen](https://github.com/kasperpeulen))
- Fix target url in error feedback [#233](https://github.com/storybookjs/test-runner/pull/233) ([@yannbf](https://github.com/yannbf))
- Remove unused development packages [#227](https://github.com/storybookjs/test-runner/pull/227) ([@yannbf](https://github.com/yannbf))
- Make setup-page globally available for index.json mode compatibility [#217](https://github.com/storybookjs/test-runner/pull/217) ([@yannbf](https://github.com/yannbf))
- Upgrade CSF to next [#212](https://github.com/storybookjs/test-runner/pull/212) ([@shilman](https://github.com/shilman))
- Fix missing dependencies [#209](https://github.com/storybookjs/test-runner/pull/209) ([@bryanjtc](https://github.com/bryanjtc))

#### πŸ“ Documentation

- Document index.json mode for Svelte CSF [#263](https://github.com/storybookjs/test-runner/pull/263) ([@JReinhold](https://github.com/JReinhold))
- Docs: add recipe for browser name [#221](https://github.com/storybookjs/test-runner/pull/221) ([@yannbf](https://github.com/yannbf))

#### Authors: 9

- Bryan Thomas ([@bryanjtc](https://github.com/bryanjtc))
- Hans Otto Wirtz ([@hansottowirtz](https://github.com/hansottowirtz))
- Ian VanSchooten ([@IanVS](https://github.com/IanVS))
- Jeppe Reinhold ([@JReinhold](https://github.com/JReinhold))
- Kasper Peulen ([@kasperpeulen](https://github.com/kasperpeulen))
- Michael Shilman ([@shilman](https://github.com/shilman))
- Robert Niznik ([@Niznikr](https://github.com/Niznikr))
- Valentin Palkovic ([@valentinpalkovic](https://github.com/valentinpalkovic))
- Yann Braga ([@yannbf](https://github.com/yannbf))

---

# v0.9.4 (Wed Feb 01 2023)

#### πŸ› Bug Fix

- Release 0.9.4 [#258](https://github.com/storybookjs/test-runner/pull/258) ([@yannbf](https://github.com/yannbf))
- Support other test-runner config extensions [#259](https://github.com/storybookjs/test-runner/pull/259) ([@yannbf](https://github.com/yannbf))
- Use ipv4 loopback address [#252](https://github.com/storybookjs/test-runner/pull/252) ([@IanVS](https://github.com/IanVS))
- Fix safe json stringify code [#239](https://github.com/storybookjs/test-runner/pull/239) ([@hansottowirtz](https://github.com/hansottowirtz))

#### Authors: 3

- Hans Otto Wirtz ([@hansottowirtz](https://github.com/hansottowirtz))
- Ian VanSchooten ([@IanVS](https://github.com/IanVS))
- Yann Braga ([@yannbf](https://github.com/yannbf))

---

# v0.9.3 (Fri Jan 20 2023)

#### πŸ› Bug Fix

- feat: add shard cli option [#246](https://github.com/storybookjs/test-runner/pull/246) ([@yannbf](https://github.com/yannbf))
- feat: add shard cli option [#243](https://github.com/storybookjs/test-runner/pull/243) ([@Niznikr](https://github.com/Niznikr) [@yannbf](https://github.com/yannbf))

#### Authors: 2

- Robert Niznik ([@Niznikr](https://github.com/Niznikr))
- Yann Braga ([@yannbf](https://github.com/yannbf))

---

# v0.9.2 (Tue Dec 20 2022)

#### πŸ› Bug Fix

- Fix target url in error feedback [#234](https://github.com/storybookjs/test-runner/pull/234) ([@yannbf](https://github.com/yannbf))

#### Authors: 1

- Yann Braga ([@yannbf](https://github.com/yannbf))

---

# v0.9.1 (Mon Nov 21 2022)

#### πŸ› Bug Fix

- Release 0.9.1 [#223](https://github.com/storybookjs/test-runner/pull/223) ([@yannbf](https://github.com/yannbf) [@shilman](https://github.com/shilman))
- Fix missing dependencies [#209](https://github.com/storybookjs/test-runner/pull/209) ([@bryanjtc](https://github.com/bryanjtc))
- Make setup-page globally available for index.json mode compatibility [#217](https://github.com/storybookjs/test-runner/pull/217) ([@yannbf](https://github.com/yannbf))
- Upgrade nightly to next instead of future [#213](https://github.com/storybookjs/test-runner/pull/213) ([@shilman](https://github.com/shilman))

#### Authors: 3

- Bryan Thomas ([@bryanjtc](https://github.com/bryanjtc))
- Michael Shilman ([@shilman](https://github.com/shilman))
- Yann Braga ([@yannbf](https://github.com/yannbf))

---

# v0.9.0 (Wed Oct 12 2022)

#### πŸš€ Enhancement

- feat: add cli option --ci [#204](https://github.com/storybookjs/test-runner/pull/204) ([@italoteix](https://github.com/italoteix))

#### πŸ› Bug Fix

- Upgrade preset-env to latest [#202](https://github.com/storybookjs/test-runner/pull/202) ([@shilman](https://github.com/shilman))
- Fix nightly check for failures [#197](https://github.com/storybookjs/test-runner/pull/197) ([@yannbf](https://github.com/yannbf))
- Improve error logging and ensure non-zero exit [#201](https://github.com/storybookjs/test-runner/pull/201) ([@IanVS](https://github.com/IanVS))

#### πŸ“ Documentation

- Docs: update coverage section now that the addon supports Vite [#205](https://github.com/storybookjs/test-runner/pull/205) ([@yannbf](https://github.com/yannbf))

#### Authors: 4

- Ian VanSchooten ([@IanVS](https://github.com/IanVS))
- Ítalo Teixeira ([@italoteix](https://github.com/italoteix))
- Michael Shilman ([@shilman](https://github.com/shilman))
- Yann Braga ([@yannbf](https://github.com/yannbf))

---

# v0.8.0 (Fri Oct 07 2022)

#### πŸš€ Enhancement

- Add isTestRunner utility [#198](https://github.com/storybookjs/test-runner/pull/198) ([@yannbf](https://github.com/yannbf) [@IanVS](https://github.com/IanVS))

#### πŸ› Bug Fix

- Fix StorybookTestRunnerError – length on undefined [#194](https://github.com/storybookjs/test-runner/pull/194) ([@ericclemmons](https://github.com/ericclemmons))

#### Authors: 3

- Eric Clemmons ([@ericclemmons](https://github.com/ericclemmons))
- Ian VanSchooten ([@IanVS](https://github.com/IanVS))
- Yann Braga ([@yannbf](https://github.com/yannbf))

---

# v0.7.2 (Fri Sep 16 2022)

#### πŸ› Bug Fix
Expand Down
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @yannbf @kasperpeulen
Loading

0 comments on commit 2b4ffdb

Please sign in to comment.