-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: create a e2e test to make sure the export works as expected (#101)
* chore: update jest configuration * test: add test for checking the library import * test: add npm scripts to run import library tests * chore: update prepush hook * test: update test config * chore: update gitignore * ci: update test command to be run in the pipeline * refactor: rename test name and test package json info * fix: update circleCI command to run tests * ci: update commands order * refactor: simplify args for test scripts * fix: modify the way of installing the library, second try * fix: update eslint config to avoid import error * fix: e2e local library * fix: missing install deps e2e tests * fix: ci install deps step also for e2e * fix: npm i from external path e2e * fix: e2e dedicated step deps * fix: missing e2e local deps build * ci: remove unused npm hooks and update gh action title * chore: add pr feedback --------- Co-authored-by: Àlex Serra <[email protected]>
- Loading branch information
1 parent
74e5ab2
commit badc839
Showing
9 changed files
with
60 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
npx lint-staged | ||
npm run test:ci | ||
npm run test:e2e | ||
npm run test:ci |
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,12 @@ | ||
import { ContentfulClient } from '@onebeyond/agnostic-cms-harmonizer'; | ||
|
||
describe('import-library', () => { | ||
it('should check the imported library is an instance of ContentfulClient', () => { | ||
const instance = new ContentfulClient({ | ||
accessToken: '', | ||
space: '', | ||
environment: '', | ||
}); | ||
expect(instance).toBeInstanceOf(ContentfulClient); | ||
}); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,10 @@ | ||
{ | ||
"name": "e2e-test", | ||
"version": "1.0.0", | ||
"description": "Package json for testing purposes", | ||
"author": "", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@onebeyond/agnostic-cms-harmonizer": "file:../../../build" | ||
} | ||
} |
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