Skip to content

chore(deps): bump prettier from 3.0.3 to 3.1.1 #533

chore(deps): bump prettier from 3.0.3 to 3.1.1

chore(deps): bump prettier from 3.0.3 to 3.1.1 #533

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Tests Results (core) succeeded Dec 11, 2023 in 0s

Tests Results (core) ✅

Tests passed successfully

✅ test-reports/core.xml

29 tests were completed in 2s with 29 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
packages/core/test/adaper-package-resolving.integration.test.ts 2✅ 147ms
packages/core/test/testbed-builder.integration.test.ts 12✅ 1s
packages/core/src/services/mock-container.spec.ts 5✅ 1s
packages/core/src/services/unit-mocker.spec.ts 3✅ 1s
packages/core/src/services/unit-reference.spec.ts 7✅ 235ms

✅ packages/core/test/adaper-package-resolving.integration.test.ts

Automock Adapter Package Resolving Integration Test › Resolving an adapter with default export
  ✅ should successfully resolve the adapter package
Automock Adapter Package Resolving Integration Test › Resolving an adapter with no default export
  ✅ should failed resolving the adapter package and throw an error

✅ packages/core/test/testbed-builder.integration.test.ts

Builder Integration Test › creating a testbed builder with some mock overrides › override the dependencies from the builder, and leave the rest for the dependencies mocked
  ✅ should return a mock or a value for "ArbitraryClassOne", with metadata undefined mocked from Symbol(MockFromMocker)
  ✅ should return a mock or a value for "ArbitraryClassTwo", with metadata undefined mocked from Symbol(MockedFromBuilder)
  ✅ should return a mock or a value for "ArbitraryClassFive", with metadata undefined mocked from Symbol(MockFromMocker)
  ✅ should return a mock or a value for "custom string-based token with metadata", with metadata {"metadataKey": "value"} mocked from Symbol(MockFromMocker)
  ✅ should return a mock or a value for "ArbitraryClassFour", with metadata undefined mocked from Symbol(MockedFromBuilder)
  ✅ should return a mock or a value for "custom string-based token with function", with metadata undefined mocked from Symbol(MockedFromBuilder)
  ✅ should return a mock or a value for "custom token with undefined value", with metadata undefined mocked from "SOME_VALUE"
  ✅ should return a mock or a value for "custom symbol-based token", with metadata {"key": "value"} mocked from Symbol(MockedFromBuilder)
  ✅ should return a mock or a value for "ArbitraryClassFive", with metadata undefined mocked from Symbol(MockFromMocker)
  ✅ should return a mock or a value for "custom token with constant value", with metadata undefined mocked from "ARBITRARY_STRING"
Builder Integration Test › creating a testbed builder with some mock overrides
  ✅ should return an instance of the unit and a unit reference
  ✅ should log a warning indicating the dependency was not found when mocking missing dependency

✅ packages/core/src/services/mock-container.spec.ts

Mocks Container Unit Spec
  ✅ should return the corresponding value when the identifier matches a single identifier and metadata is not provided
  ✅ should return the value of the first matching identifier when the identifier matches multiple identifiers and metadata is not provided
  ✅ should return undefined when the identifier does not match any identifier
  ✅ should return undefined when the identifier matches a single identifier but metadata does not match
  ✅ should return undefined when the identifier matches multiple identifiers but metadata does not match any of them

✅ packages/core/src/services/unit-mocker.spec.ts

Unit Mocker Unit Spec › given that the adapter returns container with the following dependencies › and given there are some already mocked injectables from advanced in the mocks container › when applying all the mocks on the target unit, including the already mocked
  ✅ should return container that lists all the dependencies together, mocked from the builder or from advanced
  ✅ should return an instance of the class as the unit
  ✅ should apply the mocks to the class properties as well

✅ packages/core/src/services/unit-reference.spec.ts

Unit Reference Unit Spec
  ✅ should return the corresponding class or value using unique identifier with no metadata
  ✅ should return the corresponding class or value using unique identifier with no metadata
  ✅ should return the corresponding class or value using unique identifier with no metadata
  ✅ should return the corresponding class or value using unique identifier with no metadata
  ✅ should return the corresponding class or value using unique identifier with no metadata
  ✅ should return the corresponding class or value using unique identifier with metadata combined
  ✅ should throw an error indicating the dependency not found in case the identifier is missing