You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test "Product has base fields" tests only that the included fields are the right type and not that all required fields are present. Due to this, the test will still pass even though the Product schema is missing some fields like description or createdBy.
Test "Product has base fields" tests only that the included fields are the right type and not that all required fields are present. Due to this, the test will still pass even though the Product schema is missing some fields like description or createdBy.
type Product {
name: String!
price: Float!
image: String!
type: ProductType!
range: String
liquidCooled: Boolean
bikeType: BikeType
}
...
RUNS src/types/product/tests/product.type.spec.js
PASS src/types/product/tests/product.type.spec.jsec.js
Product schema
lesson-2:
✓ Product has base fields (366ms)
✓ NewProductInput has correct fields (15ms)
✓ UpdateProductInput has correct fields (10ms)
✓ product query (45ms)
✓ products query (18ms)
✓ newProduct mutation (22ms)
✓ updateProduct mutation (19ms)
✓ removeProduct mutation (15ms)
The text was updated successfully, but these errors were encountered: