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

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,8 @@ export namespace V2Schema {
humanReadableName?: string;
};

type RemoteUsername = 'string';
type LocalUsername = 'string';
type RemoteUsername = string;
type LocalUsername = string;

/**
* WordPress register_post_type() arguments representation. {{{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,25 @@ describe('Blueprint v2 declaration types', () => {

expect(blueprint.version).toBe(2);
});

it('accepts arbitrary WXR author-map usernames', () => {
const blueprint = {
version: 2,
content: [
{
type: 'wxr',
source: './content.wxr',
authorsMode: 'map',
authorsMap: {
alice: 'admin',
'bob@example.com': 'editor',
},
},
],
} satisfies BlueprintV2Declaration;

expect(blueprint.version).toBe(2);
});
});

const blueprintWithDirectoryAsRunPHPCode = {
Expand Down
Loading