-
I have run the npm run test-unit command in my local environment, but the following error occurs: Test ResultsSummary of all failing tests
FAIL test/integration/blocks-schema.test.js
● block.json schema › validates schema for 'core/comment-author-avatar'
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: [{"instancePath": "", "keyword": "additionalProperties", "message": "must NOT have additional properties", "params": {"additionalProperty": "__experimental"}, "schemaPath": "#/additionalProperties"}]
37 | ajv.validate( blockSchema, blockMetadata ) || ajv.errors;
38 |
> 39 | expect( result ).toBe( true );
| ^
40 | }
41 | );
42 | } );
at test/integration/blocks-schema.test.js:39:21
● block.json schema › validates schema for 'core/list-item'
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: [{"instancePath": "", "keyword": "additionalProperties", "message": "must NOT have additional properties", "params": {"additionalProperty": "__experimental"}, "schemaPath": "#/additionalProperties"}]
37 | ajv.validate( blockSchema, blockMetadata ) || ajv.errors;
38 |
> 39 | expect( result ).toBe( true );
| ^
40 | }
41 | );
42 | } );
at test/integration/blocks-schema.test.js:39:21
● block.json schema › validates schema for 'core/post-author-name'
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: [{"instancePath": "", "keyword": "additionalProperties", "message": "must NOT have additional properties", "params": {"additionalProperty": "__experimental"}, "schemaPath": "#/additionalProperties"}]
37 | ajv.validate( blockSchema, blockMetadata ) || ajv.errors;
38 |
> 39 | expect( result ).toBe( true );
| ^
40 | }
41 | );
42 | } );
at test/integration/blocks-schema.test.js:39:21
● block.json schema › validates schema for 'core/post-comment'
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: [{"instancePath": "", "keyword": "additionalProperties", "message": "must NOT have additional properties", "params": {"additionalProperty": "__experimental"}, "schemaPath": "#/additionalProperties"}]
37 | ajv.validate( blockSchema, blockMetadata ) || ajv.errors;
38 |
> 39 | expect( result ).toBe( true );
| ^
40 | }
41 | );
42 | } );
at test/integration/blocks-schema.test.js:39:21
● block.json schema › validates schema for 'core/post-comments-count'
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: [{"instancePath": "", "keyword": "additionalProperties", "message": "must NOT have additional properties", "params": {"additionalProperty": "__experimental"}, "schemaPath": "#/additionalProperties"}]
37 | ajv.validate( blockSchema, blockMetadata ) || ajv.errors;
38 |
> 39 | expect( result ).toBe( true );
| ^
40 | }
41 | );
42 | } );
at test/integration/blocks-schema.test.js:39:21
● block.json schema › validates schema for 'core/post-comments-link'
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: [{"instancePath": "", "keyword": "additionalProperties", "message": "must NOT have additional properties", "params": {"additionalProperty": "__experimental"}, "schemaPath": "#/additionalProperties"}]
37 | ajv.validate( blockSchema, blockMetadata ) || ajv.errors;
38 |
> 39 | expect( result ).toBe( true );
| ^
40 | }
41 | );
42 | } );
at test/integration/blocks-schema.test.js:39:21
Test Suites: 1 failed, 534 passed, 535 total
Tests: 6 failed, 1 skipped, 6207 passed, 6214 total
Snapshots: 326 passed, 326 total
Time: 185.214 s, estimated 209 s
Ran all test suites. It appears that the block schema validation is failing in Am I missing some advance preparation? Environment Info
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I tried again and successfully added the test. (Gutenberg v13.5.0) |
Beta Was this translation helpful? Give feedback.
I tried again and successfully added the test. (Gutenberg v13.5.0)
I think it was either a temporary problem or an issue with my environment.