Skip to content

Commit

Permalink
explicit import of jest.setup.ts (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-statsig authored Feb 13, 2024
1 parent 1c4d164 commit 4f376a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@v2

- name: cache .npm
uses: actions/cache@v2
env:
Expand All @@ -22,8 +23,10 @@ jobs:
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- run: npm install
- run: npm run testForGithubOrRedisEnthusiasts

eslint:
runs-on: ubuntu-20.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
with:
Expand Down
1 change: 1 addition & 0 deletions src/__tests__/InternalStore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { StatsigUser } from '../StatsigUser';
import { EvaluationReason } from '../utils/EvaluationReason';
import LocalStorageMock from './LocalStorageMock';
import UserPersistentStorageExample from './UserPersistentStorageExample';
import './jest.setup';

type InitializeResponse = {
feature_gates: Record<string, Record<string, any>>;
Expand Down
2 changes: 2 additions & 0 deletions src/__tests__/jest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { expect } from '@jest/globals';

import DynamicConfig from '../DynamicConfig';

/* eslint-disable @typescript-eslint/no-explicit-any */
Expand Down

0 comments on commit 4f376a2

Please sign in to comment.