Skip to content

Commit

Permalink
ci(codespell): Exclude /__tests__/mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed Sep 21, 2023
1 parent 1823a14 commit 43794c1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
# skip git, yarn, pixel test script and HAR file, and all i18n resources.
# Also, the a11y test file has a false positive and the ignore list does not work
# see https://github.com/opentripplanner/otp-react-redux/pull/436/checks?check_run_id=3369380014
skip: ./.git,yarn.lock,./a11y/a11y.test.js,./a11y/mocks,./percy/percy.test.js,./percy/mock.har,./i18n
skip: ./.git,yarn.lock,./a11y/a11y.test.js,./a11y/mocks,./percy/percy.test.js,./percy/mock.har,./i18n,./__tests__/mocks
File renamed without changes.
2 changes: 1 addition & 1 deletion __tests__/util/stop-times.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { utcToZonedTime } from 'date-fns-tz'
import '../test-utils/mock-window-url'
import { groupAndSortStopTimesByPatternByDay } from '../../lib/util/stop-times'

const stopData = require('./stop-data.json')
const stopData = require('../mocks/stop-data.json')
const now = utcToZonedTime(
new Date(stopData.stopTimesLastUpdated),
'America/Los_Angeles'
Expand Down

0 comments on commit 43794c1

Please sign in to comment.