Skip to content

Commit

Permalink
change test cmd ealush#521
Browse files Browse the repository at this point in the history
  • Loading branch information
Moses3301 committed Nov 30, 2020
1 parent c019e1c commit 571b57c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"prettier-watch": "onchange '**/*.js' '**/*.json' -- prettier --write {{changed}}",
"dev": "onchange -i './packages/**/src/**/*.js' -- yarn genJSConfig",
"genJSConfig": "node ./scripts/genJsconfig",
"test": "jest --projects ./packages/*",
"test": "jest --projects ./packages/",
"lint": "eslint . --ignore-path .gitignore",
"pretest": "yarn genJSConfig",
"docs": "node scripts/release/steps/updateDocs"
Expand Down
4 changes: 4 additions & 0 deletions packages/vest/src/__tests__/test_types/fixtures/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,16 @@ enforce(0).shorterThanOrEquals;
enforce.shorterThanOrEquals;
enforce(0).startsWith;
enforce.startsWith;
enforce(0).allOf;
enforce.allOf;
enforce(0).anyOf;
enforce.anyOf;
enforce(0).isArrayOf;
enforce.isArrayOf;
enforce(0).loose;
enforce.loose;
enforce(0).oneOf;
enforce.oneOf;
enforce(0).optional;
enforce.optional;
enforce(0).shape;
Expand Down
6 changes: 0 additions & 6 deletions packages/vest/src/typings/enforce.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,8 @@ interface IEnforceRules<T = {}> {
) => RuleReturn<T>;
isArrayOf: CompoundListOfRules<T>;
anyOf: CompoundListOfRules<T>;
<<<<<<< HEAD
allOf: CompoundListOfRules<T>;
=======
oneOf: CompoundListOfRules<T>;
>>>>>>> latest
}

interface IEnforce {
Expand Down Expand Up @@ -199,11 +196,8 @@ type TEnforceLazy = {
optional: LazyCopmoundListOfRules;
isArrayOf: LazyCopmoundListOfRules;
anyOf: LazyCopmoundListOfRules;
<<<<<<< HEAD
allOf: LazyCopmoundListOfRules;
=======
oneOf: LazyCopmoundListOfRules;
>>>>>>> latest
};

export type TEnforce = IEnforce & TEnforceLazyReturn;

0 comments on commit 571b57c

Please sign in to comment.