Skip to content

Commit

Permalink
build: set timezone on test
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallpete committed Oct 22, 2024
1 parent 352866c commit 5376bcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
"sonar-fork-pr": "node ./scripts/runSonarOnFork.js",
"start": "yarn storybook",
"storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider && storybook dev -p 6009",
"test": "cross-env BABEL_ENV=test jest",
"watch": "cross-env BABEL_ENV=test jest --watch",
"test": "cross-env TZ=UTC BABEL_ENV=test jest",
"watch": "cross-env TZ=UTC BABEL_ENV=test jest --watch",
"skulk": "yarn watch --silent"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/stories/components/Axis/Axis.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('Axis', () => {
expect(chart).toBeInTheDocument();

// make sure labels are visible
expect(await screen.findByText('11')).toBeInTheDocument();
expect(await screen.findByText('18')).toBeInTheDocument();
expect(await screen.findByText('Sep')).toBeInTheDocument();
});

Expand All @@ -109,7 +109,7 @@ describe('Axis', () => {
expect(chart).toBeInTheDocument();

// make sure labels are visible
expect(await screen.findByText('Jan')).toBeInTheDocument();
expect(await screen.findByText('Feb')).toBeInTheDocument();
expect(await screen.findByText('2022')).toBeInTheDocument();
});

Expand Down

0 comments on commit 5376bcf

Please sign in to comment.