generated from Ed-Fi-Exchange-OSS/Template-for-GitHub
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RND-651] Ability to loosely allow overposted material for parity (#313)
* [RND-651] Ability to loosely allow overposted material for parity - Add parameter removeAdditional to ajv instantiation - Add flag ALLOW_OVERPOSTING to enable o disable the removeAddtional. By default is false, so it doesn't remove additional fields. - Add package unit tests to validate - Add e2e to validate post and put using the default case that doesn't remove additional. * Update SchemaValidation.test.ts Fix delete * Update SchemaValidation.test.ts Remove deletes * Update SchemaValidation.test.ts Fix linting * Update SchemaValidation.test.ts Delete inserted resource * Add tests Create additional unit test Add Integration test to validate upsert and update. * Update package.json Update test:integration to add meadwolark-core * Add function to clear validationCache to test validators * Update MetaEdValidation.test.ts Add test to validate cases without extraneous properties. * Update MetaEdValidation.test.ts Update tests * Some little improvements on a few tests descriptions. --------- Co-authored-by: David Jimenez Barrantes <[email protected]>
- Loading branch information
1 parent
dc4afd9
commit c4b69e4
Showing
15 changed files
with
713 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
Meadowlark-js/packages/meadowlark-core/test/config/integration/jest.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const rootDir = '../../../../../'; | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
const defaultConfig = require(`${rootDir}/tests/config/jest.config`); | ||
|
||
module.exports = { | ||
displayName: 'Integration Tests: meadowlark-core', | ||
...defaultConfig, | ||
testMatch: ['**/meadowlark-core/test/integration/**/*.(spec|test).[jt]s?(x)'], | ||
watchPathIgnorePatterns: ['globalConfig'], // jest-mongodb setup | ||
coverageThreshold: { | ||
global: { | ||
branches: 52, | ||
functions: 58, | ||
lines: 60, | ||
statements: 60, | ||
}, | ||
}, | ||
rootDir, | ||
workerIdleMemoryLimit: '200MB', | ||
}; |
Oops, something went wrong.