Skip to content

Commit 8f0c308

Browse files
committed
fix(auto-effects-test): fix a store placement issue in tests
1 parent b3c26f5 commit 8f0c308

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

__tests__/autoEffect.no-hook.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ describe('AutoEffect edge cases and errors', () => {
1212
: 'should not'
1313
} throw an error`, () => {
1414
const someEffect = () => {};
15+
const person = store({ name: 'Bob' });
1516

1617
const MyComp = view(() => {
17-
const person = store({ name: 'Bob' });
1818
autoEffect(() => someEffect(person.name));
1919
return <div>{person.name}</div>;
2020
});

__tests__/autoEffect.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
// eslint-disable-next-line import/no-unresolved
99
} from 'react-easy-state';
1010

11-
describe.only('autoEffect', () => {
11+
describe('autoEffect', () => {
1212
afterEach(cleanup);
1313

1414
test('should auto run global effects', () => {

0 commit comments

Comments
 (0)