Skip to content

Commit aa46a62

Browse files
committed
Fix some issues with heft-json-schema-typings-plugin-test.
1 parent afa1c55 commit aa46a62

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

build-tests/heft-json-schema-typings-plugin-test/config/heft.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"cleanFiles": [{ "includeGlobs": ["temp/schema-dts", "temp/schema-dts-formatted"] }],
99

1010
"tasksByName": {
11-
"json-schema-typings": {
11+
"json-schema-typings-unformatted": {
1212
"taskPlugin": {
1313
"pluginPackage": "@rushstack/heft-json-schema-typings-plugin",
1414
"pluginName": "json-schema-typings-plugin",

build-tests/heft-json-schema-typings-plugin-test/src/test/JsonSchemaTypingsGenerator.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ describe('json-schema-typings-plugin', () => {
4040
rootFolder = foundRootFolder;
4141
});
4242

43-
it('should generate typings for JSON Schemas', async () => {
43+
it('should generate typings for JSON Schemas (unformatted)', async () => {
4444
const folderItems: Record<string, string> = await getFolderItemsAsync(
45-
`${rootFolder}/temp/schema-dts`,
45+
`${rootFolder}/temp/schema-dts-unformatted`,
4646
'.'
4747
);
4848
expect(folderItems).toMatchSnapshot();
4949
});
5050

51-
it('should generate formatted typings for JSON Schemas', async () => {
51+
it('should generate typings for JSON Schemas (formatted)', async () => {
5252
const folderItems: Record<string, string> = await getFolderItemsAsync(
5353
`${rootFolder}/temp/schema-dts-formatted`,
5454
'.'

build-tests/heft-json-schema-typings-plugin-test/src/test/__snapshots__/JsonSchemaTypingsGenerator.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`json-schema-typings-plugin should generate formatted typings for JSON Schemas 1`] = `
3+
exports[`json-schema-typings-plugin should generate typings for JSON Schemas (formatted) 1`] = `
44
Object {
55
"./test-invalid-additional.schema.json.d.ts": "// This file was generated by a tool. Modifying it will produce unexpected behavior
66
@@ -222,7 +222,7 @@ export interface TestValid {
222222
}
223223
`;
224224

225-
exports[`json-schema-typings-plugin should generate typings for JSON Schemas 1`] = `
225+
exports[`json-schema-typings-plugin should generate typings for JSON Schemas (unformatted) 1`] = `
226226
Object {
227227
"./test-invalid-additional.schema.json.d.ts": "// This file was generated by a tool. Modifying it will produce unexpected behavior
228228

0 commit comments

Comments
 (0)