-
Notifications
You must be signed in to change notification settings - Fork 914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/e2e-testing #42
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
4069d50
Add e2e example
54397b6
Test api version
0c71ac4
Merge develop
d165a4c
Add nock for http mocking
75eee5e
Remove comming soon part
3e90830
Refactor seeds
acac1f8
Improve seeding
9699915
Add e2e test examples
7c95460
Add types
2b25741
Refactor seeding
fa4cbab
Update documentation
25271bc
Improve auth faker
7b70468
Remove unused code
f518ecb
Refactoring e2e testing
9c0b458
Add fixed microframework version from w3tec
141bf36
Create tslint function
af88e28
Adjust e2e documentation
262863c
Fix unuesed imports
06d2415
Improve typescript configurations for test cases
441c1a6
Improve nps
1ddddf0
Refactor test utils
819fc05
Refactor test utils
09fbca0
Refactor entity factory
bc3b950
Refactor nps
282e758
Fix tests
7700cab
Add migration to the e2e tests
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ typings/ | |
# Dist # | ||
dist/ | ||
ormconfig.json | ||
tsconfig.build.json | ||
|
||
# IDE # | ||
.idea/ | ||
|
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
{ | ||
"typescript.tsdk": "./node_modules/typescript/lib", | ||
"cSpell.enabled": true | ||
"cSpell.enabled": true, | ||
"files.exclude": { | ||
"tsconfig.build.json": true, | ||
"ormconfig.json": true | ||
} | ||
} |
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import * as path from 'path'; | ||
import * as Chalk from 'chalk'; | ||
import * as jsonfile from 'jsonfile'; | ||
import * as tsconfig from '../tsconfig.json'; | ||
|
||
|
||
const content: any = tsconfig; | ||
content.include = [ | ||
'src/**/*', | ||
]; | ||
|
||
const filePath = path.join(process.cwd(), 'tsconfig.build.json'); | ||
jsonfile.writeFile(filePath, content, { spaces: 2 }, (err) => { | ||
if (err === null) { | ||
const chalk = Chalk.default; | ||
console.log('👍 ', | ||
chalk.gray.underline('generated:'), | ||
chalk.blue.bold('tsconfig.build.json') | ||
); | ||
} else { | ||
console.error('Failed to generate the otsconfig.build.json', err); | ||
process.exit(1); | ||
} | ||
}); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice when we could use
create(10)
andcreate()
so we don't need an additional methodcreateMany(x)
.