Skip to content
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

test: overall unit tests + integration #4

Merged
merged 4 commits into from Jan 18, 2021
Merged

Conversation

omermorad
Copy link
Owner

No description provided.

@omermorad omermorad merged commit 4013581 into initial-package Jan 18, 2021
@omermorad omermorad deleted the testing branch January 18, 2021 21:52
test('faker.setLocale should be called with the passed locale', () => {
const setLocaleMock = mocked(faker.setLocale).mock.calls;
expect(setLocaleMock).toHaveLength(1);
expect(setLocaleMock[0][0]).toEqual('en');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am pretty sure Jest have something like

expect(faker.setLocale).hasBeenCalledOnceWith('en')

omermorad added a commit that referenced this pull request Jan 28, 2021
* wip(): initial package

* docs(api): add initial package api description

* docs: update main readme

* fix(signatures): remove redundant signature for Date type overload

* refactor: general refactor

Co-authored-by: Idanpt <idan.ptichi@naturalint.com>

* wip: added more docs + minimal refactor

* refactor: general refactor and naming

* refactor(handlers): change handlers interface and structure, broke into 3 different for objects

* test: unit tests + integration (#4)

* test(fixture-factory, class-processor): first commit of unit tests - fixture-factory,class-processor

* test(class-processor, primitive-value-handler): class processor, primitive values tests added

* test: refactored tests

Co-authored-by: amit.wagner <wagner.amit@gmail.com>

* refactor: changed some names and added some contrs to package.json

* chore(package.lock): add package-lock.json file

* style(handlers): change the names to inspectors

* style(handlers): change the names to inspectors

* refactor: tests and general structure (#7)

* refactor: naming

* refactor(FML): mega refactor

* refactor(handlers): logics and more handlers

* fix(primitives): throw an error when type mismatch

* fix(circularity): remove ciruclarity protection because reflect-metadata protection

* test(handlers): added unit test for callback handler

* test(handlers): add enum unit test and fix callback one

* test(handlers): add some more tests for handlers

* refactor(naming): changed some names

* test: more coverage and renaming

* chore(release-settings): change startegy to work with v-* and not with master

* test(reflector): add class reflector test coverage

* test: added integration test, increased coverage

* docs(api): update api documentation

* refactor: god rid of some redundant checks, change class-type name, change tsconfig target

* renames & 2nd phase todos (#8)

* refactor: renames and add second phase todos

* fix: add 'unknown' overlap to property dto

Co-authored-by: Idanpt <idan.ptichi@naturalint.com>
Co-authored-by: Omer Morad <omer.moradd@gmail.com>

* ci: add commit lint validation

* docs(readme): update main readme file

* chore(deps): update peer deps

* test: fixture factory test

Co-authored-by: Idanpt <idan.ptichi@naturalint.com>

* test(coverage): ladies and gents, coverage is now 100%

* ci(releaserc): add 'alpha' branch to pre-release

Co-authored-by: Idanpt <idan.ptichi@naturalint.com>
Co-authored-by: amit.wagner <wagner.amit@gmail.com>
Co-authored-by: idanpt <idanpt@gmail.com>
omermorad pushed a commit that referenced this pull request Jan 28, 2021
# 1.0.0-alpha.1 (2021-01-28)

### Features

* faker.ts alpha release ([#11](#11)) ([67511b7](67511b7)), closes [#4](#4) [#7](#7) [#8](#8)
omermorad pushed a commit that referenced this pull request Jan 28, 2021
# 1.0.0-alpha.1 (2021-01-28)

### Features

* faker.ts alpha release ([#11](#11)) ([67511b7](67511b7)), closes [#4](#4) [#7](#7) [#8](#8)
omermorad added a commit that referenced this pull request Jan 28, 2021
* wip: initial package

* docs(api): add initial package api description

* docs: update main readme

* fix(signatures): remove redundant signature for Date type overload

* refactor: general refactor

* wip: added more docs + minimal refactor

* refactor: general refactor and naming

* refactor(handlers): change handlers interface and structure, broke into 3 different for objects

* test: unit tests + integration (#4)

* test(fixture-factory, class-processor): first commit of unit tests - fixture-factory, class-processor

* test(class-processor, primitive-value-handler): class processor, primitive values tests added

* test: refactored tests

* refactor: changed some names and added some contributors to package.json

* chore(package.lock): add package-lock.json file

* style(handlers): change the names to inspectors

* style(handlers): change the names to inspectors

* refactor: tests and general structure (#7)

* refactor: naming

* refactor(FML): mega refactor

* refactor(handlers): logics and more handlers

* fix(primitives): throw an error when type mismatch

* fix(circularity): remove circularity protection because reflect-metadata protection

* test(handlers): added unit test for callback handler

* test(handlers): add enum unit test and fix callback one

* test(handlers): add some more tests for handlers

* refactor(naming): changed some names

* test: more coverage and renaming

* chore(release-settings): change strategy to work with v-* and not with master

* test(reflector): add class reflector test coverage

* test: added integration test, increased coverage

* docs(api): update api documentation

* refactor: god rid of some redundant checks, change class-type name, change tsconfig target

* renames & 2nd phase todos (#8)

* refactor: renames and add second phase todos

* fix: add 'unknown' overlap to property dto

* ci: add commit lint validation

* docs(readme): update main readme file

* chore(deps): update peer deps

* test: fixture factory test

* test(coverage): ladies and gents, coverage is now 100%

* ci(releaserc): add 'alpha' branch to pre-release

Co-authored-by: amit.wagner <wagner.amit@gmail.com>
Co-authored-by: idanpt <idanpt@gmail.com>
omermorad pushed a commit that referenced this pull request Feb 1, 2021
# 1.0.0 (2021-02-01)

### Bug Fixes

* **signatures:** remove redundant signature for Date type overload ([e4fbbc1](e4fbbc1))

### Features

* alpha release ([#12](#12)) ([5682bb4](5682bb4))
* faker.ts initial ([#6](#6)) ([714fc05](714fc05)), closes [#4](#4) [#7](#7) [#8](#8)
omermorad pushed a commit that referenced this pull request Feb 1, 2021
# 1.0.0-alpha.1 (2021-02-01)

### Bug Fixes

* **signatures:** remove redundant signature for Date type overload ([e4fbbc1](e4fbbc1))

### Features

* alpha release ([#12](#12)) ([5682bb4](5682bb4))
* faker.ts initial ([#6](#6)) ([714fc05](714fc05)), closes [#4](#4) [#7](#7) [#8](#8)
omermorad pushed a commit that referenced this pull request Feb 1, 2021
# 1.0.0-alpha.1 (2021-02-01)

### Bug Fixes

* **signatures:** remove redundant signature for Date type overload ([e4fbbc1](e4fbbc1))

### Features

* alpha release ([#12](#12)) ([5682bb4](5682bb4))
* faker.ts initial ([#6](#6)) ([714fc05](714fc05)), closes [#4](#4) [#7](#7) [#8](#8)
omermorad pushed a commit that referenced this pull request Feb 1, 2021
# 1.0.0-alpha.1 (2021-02-01)

### Bug Fixes

* **signatures:** remove redundant signature for Date type overload ([e4fbbc1](e4fbbc1))

### Features

* alpha release ([#12](#12)) ([5682bb4](5682bb4))
* faker.ts initial ([#6](#6)) ([714fc05](714fc05)), closes [#4](#4) [#7](#7) [#8](#8)
omermorad pushed a commit that referenced this pull request Feb 1, 2021
# 1.0.0-alpha.1 (2021-02-01)

### Bug Fixes

* **signatures:** remove redundant signature for Date type overload ([e4fbbc1](e4fbbc1))

### Features

* alpha release ([#12](#12)) ([5682bb4](5682bb4))
* changelog ([a62d9c8](a62d9c8))
* faker.ts initial ([#6](#6)) ([714fc05](714fc05)), closes [#4](#4) [#7](#7) [#8](#8)
omermorad pushed a commit that referenced this pull request Feb 3, 2021
# 1.0.0-beta.1 (2021-02-03)

### Bug Fixes

* **signatures:** remove redundant signature for Date type overload ([e4fbbc1](e4fbbc1))

### Code Refactoring

* **names:** change the whole project from 'fixture' into 'mock' ([3b1ba31](3b1ba31))

### Features

* alpha release ([#12](#12)) ([5682bb4](5682bb4))
* changelog ([a62d9c8](a62d9c8))
* faker.ts initial ([#6](#6)) ([714fc05](714fc05)), closes [#4](#4) [#7](#7) [#8](#8)

### BREAKING CHANGES

* **names:** Fixture is now Mock
omermorad pushed a commit that referenced this pull request Feb 4, 2021
# 1.0.0-beta.1 (2021-02-04)

### Bug Fixes

* **signatures:** remove redundant signature for Date type overload ([e4fbbc1](e4fbbc1))

### Code Refactoring

* **names:** change the whole project from 'fixture' into 'mock' ([3b1ba31](3b1ba31))

### Features

* alpha release ([#12](#12)) ([5682bb4](5682bb4))
* changelog ([a62d9c8](a62d9c8))
* faker.ts initial ([#6](#6)) ([714fc05](714fc05)), closes [#4](#4) [#7](#7) [#8](#8)

### BREAKING CHANGES

* **names:** Fixture is now Mock
@omermorad
Copy link
Owner Author

🎉 This PR is included in version 1.0.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

omermorad pushed a commit that referenced this pull request Feb 5, 2021
# 1.0.0-beta.1 (2021-02-05)

### Bug Fixes

* **signatures:** remove redundant signature for Date type overload ([e4fbbc1](e4fbbc1))

### Continuous Integration

* **release:** add beta as pre-release branch ([aed0c09](aed0c09))

### Features

* alpha release ([#12](#12)) ([5682bb4](5682bb4))
* faker.ts initial ([#6](#6)) ([714fc05](714fc05)), closes [#4](#4) [#7](#7) [#8](#8)

### BREAKING CHANGES

* **release:** Add 'tslib' as dependency
omermorad pushed a commit that referenced this pull request Feb 5, 2021
# 1.0.0-beta.1 (2021-02-05)

### Bug Fixes

* **signatures:** remove redundant signature for Date type overload ([e4fbbc1](e4fbbc1))

### Continuous Integration

* **release:** add beta as pre-release branch ([aed0c09](aed0c09))

### Features

* **release:** release new beta version ([bda5aa7](bda5aa7))
* alpha release ([#12](#12)) ([5682bb4](5682bb4))
* faker.ts initial ([#6](#6)) ([714fc05](714fc05)), closes [#4](#4) [#7](#7) [#8](#8)

### BREAKING CHANGES

* **release:** Add 'tslib' as dependency
omermorad pushed a commit that referenced this pull request Feb 5, 2021
# 1.0.0-rc.1 (2021-02-05)

### Bug Fixes

* **signatures:** remove redundant signature for Date type overload ([e4fbbc1](e4fbbc1))

### Continuous Integration

* **release:** add beta as pre-release branch ([aed0c09](aed0c09))

### Features

* **release:** release new beta version ([bda5aa7](bda5aa7))
* alpha release ([#12](#12)) ([5682bb4](5682bb4))
* faker.ts initial ([#6](#6)) ([714fc05](714fc05)), closes [#4](#4) [#7](#7) [#8](#8)

### BREAKING CHANGES

* **release:** Add 'tslib' as dependency
@omermorad
Copy link
Owner Author

🎉 This PR is included in version 1.0.0-rc.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

omermorad pushed a commit that referenced this pull request Feb 9, 2021
# 1.0.0-beta.1 (2021-02-09)

### Bug Fixes

* **signatures:** remove redundant signature for Date type overload ([e4fbbc1](e4fbbc1))

### Code Refactoring

* **types:** add some new types to be more accurate ([d4eba88](d4eba88))

### Continuous Integration

* **release:** add beta as pre-release branch ([aed0c09](aed0c09))

### Features

* **release:** release new beta version ([bda5aa7](bda5aa7))
* alpha release ([#12](#12)) ([5682bb4](5682bb4))
* faker.ts initial ([#6](#6)) ([714fc05](714fc05)), closes [#4](#4) [#7](#7) [#8](#8)

### BREAKING CHANGES

* **types:** New MockedClass type
* **release:** Add 'tslib' as dependency
omermorad pushed a commit that referenced this pull request Feb 9, 2021
# 1.0.0 (2021-02-09)

### Bug Fixes

* **signatures:** remove redundant signature for Date type overload ([e4fbbc1](e4fbbc1))

### Code Refactoring

* **types:** add some new types to be more accurate ([d4eba88](d4eba88))

### Continuous Integration

* **release:** add beta as pre-release branch ([aed0c09](aed0c09))

### Features

* **release:** release new beta version ([bda5aa7](bda5aa7))
* alpha release ([#12](#12)) ([5682bb4](5682bb4))
* faker.ts initial ([#6](#6)) ([714fc05](714fc05)), closes [#4](#4) [#7](#7) [#8](#8)

### BREAKING CHANGES

* **types:** New MockedClass type
* **release:** Add 'tslib' as dependency
@omermorad
Copy link
Owner Author

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants