Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 6 additions & 20 deletions packages/core/src/__snapshots__/config.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,22 @@ exports[`svgo async #loadConfig [async] should not load config with "runtimeConf
"dimensions": true,
"expandProps": "end",
"exportType": "default",
"icon": true,
"icon": false,
"index": false,
"memo": false,
"namedExport": "ReactComponent",
"native": false,
"noSemi": true,
"prettier": true,
"prettierConfig": undefined,
"ref": false,
"replaceAttrValues": [
[
"#063855",
"currentColor",
],
],
"runtimeConfig": true,
"replaceAttrValues": undefined,
"runtimeConfig": false,
"svgProps": undefined,
"svgo": true,
"svgoConfig": undefined,
"template": undefined,
"titleProp": false,
"typescript": false,
"useRuntimeConfig": false,
}
`;

Expand Down Expand Up @@ -156,29 +149,22 @@ exports[`svgo sync #loadConfig [sync] should not load config with "runtimeConfig
"dimensions": true,
"expandProps": "end",
"exportType": "default",
"icon": true,
"icon": false,
"index": false,
"memo": false,
"namedExport": "ReactComponent",
"native": false,
"noSemi": true,
"prettier": true,
"prettierConfig": undefined,
"ref": false,
"replaceAttrValues": [
[
"#063855",
"currentColor",
],
],
"runtimeConfig": true,
"replaceAttrValues": undefined,
"runtimeConfig": false,
"svgProps": undefined,
"svgo": true,
"svgoConfig": undefined,
"template": undefined,
"titleProp": false,
"typescript": false,
"useRuntimeConfig": false,
}
`;

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('svgo', () => {

it('should not load config with "runtimeConfig: false', async () => {
const config = await getMethod(loadConfig, mode)(
{ useRuntimeConfig: false },
{ runtimeConfig: false },
{ filePath: path.join(__dirname, '__fixtures__/svgr/icon.svg') },
)
expect(config).toMatchSnapshot()
Expand Down