Skip to content

Commit

Permalink
patch(vest): use vast state library
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed May 11, 2021
1 parent a5aa3f1 commit 5791fef
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 202 deletions.
1 change: 0 additions & 1 deletion jsconfig.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions packages/vest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"devDependencies": {
"anyone": "^0.0.7",
"context": "^1.1.0",
"n4s": "^2.1.1"
"n4s": "^2.1.1",
"vast": "^1.0.1"
},
"module": "./esm/vest.es.production.js"
}
}
147 changes: 0 additions & 147 deletions packages/vest/src/core/state/__tests__/state.test.js

This file was deleted.

50 changes: 0 additions & 50 deletions packages/vest/src/core/state/state.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/vest/src/core/suite/createSuite.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import createState from 'vast';

import asArray from 'asArray';
import createStateRef from 'createStateRef';
Expand All @@ -6,7 +7,6 @@ import genId from 'genId';
import isFunction from 'isFunction';
import mergeExcludedTests from 'mergeExcludedTests';
import produce from 'produce';
import createState from 'state';
import { usePending, useTestObjects } from 'stateHooks';
import throwError from 'throwError';
import withArgs from 'withArgs';
Expand Down
3 changes: 2 additions & 1 deletion packages/vest/testUtils/runCreateRef.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import createState from 'vast';

import createStateRef from 'createStateRef';
import createState from 'state';

export default state =>
createStateRef(state ? state : createState(), {
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5614,6 +5614,11 @@ validator@^13.5.2:
resolved "https://registry.yarnpkg.com/validator/-/validator-13.5.2.tgz#c97ae63ed4224999fb6f42c91eaca9567fe69a46"
integrity sha512-mD45p0rvHVBlY2Zuy3F3ESIe1h5X58GPfAtslBjY7EtTqGquZTj+VX/J4RnHWN8FKq0C9WRVt1oWAcytWRuYLQ==

vast@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/vast/-/vast-1.0.1.tgz#1021546aab2675fd8ff0f9d9dce6286d9515b0ef"
integrity sha512-MXneHapPy1DLusERpmCIOkMO4qZeK7HpUxNtBaSDGqZETub8fUnM0Y43LwzISavy0G+NfYoIY6hBOgTVm6ur4w==

verror@1.10.0:
version "1.10.0"
resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400"
Expand Down

0 comments on commit 5791fef

Please sign in to comment.