Skip to content

Commit

Permalink
test: refactor existing tests into features
Browse files Browse the repository at this point in the history
- re-write tests to new inline expectation format
- expose diagnostics messages internally for tests
- remove unused `core-test-kit` matchers
  • Loading branch information
idoros committed Nov 15, 2022
1 parent 59898d5 commit b659763
Show file tree
Hide file tree
Showing 8 changed files with 1,270 additions and 2,545 deletions.
84 changes: 0 additions & 84 deletions packages/core-test-kit/src/matchers/results.ts

This file was deleted.

2 changes: 2 additions & 0 deletions packages/core/src/features/st-custom-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
createBooleanStateClassName,
createStateWithParamClassName,
systemValidators,
validationErrors as sysValidationErrors,
resolveStateParam,
} from '../helpers/custom-state';

Expand All @@ -32,5 +33,6 @@ export {
createBooleanStateClassName,
createStateWithParamClassName,
systemValidators,
sysValidationErrors,
resolveStateParam,
};
2 changes: 1 addition & 1 deletion packages/core/src/helpers/custom-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export interface StateResult {
errors: string[] | null;
}

const validationErrors = {
export const validationErrors = {
string: {
STRING_TYPE_VALIDATION_FAILED: (actualParam: string) =>
`"${actualParam}" should be of type string`,
Expand Down
52 changes: 0 additions & 52 deletions packages/core/test/extend-function-parser.spec.ts

This file was deleted.

Loading

0 comments on commit b659763

Please sign in to comment.