mirror of
https://github.com/stackblitz/bolt.new
synced 2024-11-28 06:52:47 +00:00
221 lines
6.1 KiB
Plaintext
221 lines
6.1 KiB
Plaintext
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (0) > onActionClose 1`] = `
|
||
|
{
|
||
|
"action": {
|
||
|
"content": "npm install",
|
||
|
"type": "shell",
|
||
|
},
|
||
|
"actionId": "0",
|
||
|
"artifactId": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (0) > onActionOpen 1`] = `
|
||
|
{
|
||
|
"action": {
|
||
|
"content": "",
|
||
|
"type": "shell",
|
||
|
},
|
||
|
"actionId": "0",
|
||
|
"artifactId": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (0) > onArtifactClose 1`] = `
|
||
|
{
|
||
|
"id": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
"title": "Some title",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (0) > onArtifactOpen 1`] = `
|
||
|
{
|
||
|
"id": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
"title": "Some title",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (1) > onActionClose 1`] = `
|
||
|
{
|
||
|
"action": {
|
||
|
"content": "npm install",
|
||
|
"type": "shell",
|
||
|
},
|
||
|
"actionId": "0",
|
||
|
"artifactId": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (1) > onActionClose 2`] = `
|
||
|
{
|
||
|
"action": {
|
||
|
"content": "some content
|
||
|
",
|
||
|
"filePath": "index.js",
|
||
|
"type": "file",
|
||
|
},
|
||
|
"actionId": "1",
|
||
|
"artifactId": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (1) > onActionOpen 1`] = `
|
||
|
{
|
||
|
"action": {
|
||
|
"content": "",
|
||
|
"type": "shell",
|
||
|
},
|
||
|
"actionId": "0",
|
||
|
"artifactId": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (1) > onActionOpen 2`] = `
|
||
|
{
|
||
|
"action": {
|
||
|
"content": "",
|
||
|
"filePath": "index.js",
|
||
|
"type": "file",
|
||
|
},
|
||
|
"actionId": "1",
|
||
|
"artifactId": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (1) > onArtifactClose 1`] = `
|
||
|
{
|
||
|
"id": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
"title": "Some title",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (1) > onArtifactOpen 1`] = `
|
||
|
{
|
||
|
"id": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
"title": "Some title",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (0) > onArtifactClose 1`] = `
|
||
|
{
|
||
|
"id": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
"title": "Some title",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (0) > onArtifactOpen 1`] = `
|
||
|
{
|
||
|
"id": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
"title": "Some title",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (1) > onArtifactClose 1`] = `
|
||
|
{
|
||
|
"id": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
"title": "Some title",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (1) > onArtifactOpen 1`] = `
|
||
|
{
|
||
|
"id": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
"title": "Some title",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (2) > onArtifactClose 1`] = `
|
||
|
{
|
||
|
"id": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
"title": "Some title",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (2) > onArtifactOpen 1`] = `
|
||
|
{
|
||
|
"id": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
"title": "Some title",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (3) > onArtifactClose 1`] = `
|
||
|
{
|
||
|
"id": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
"title": "Some title",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (3) > onArtifactOpen 1`] = `
|
||
|
{
|
||
|
"id": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
"title": "Some title",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (4) > onArtifactClose 1`] = `
|
||
|
{
|
||
|
"id": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
"title": "Some title",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (4) > onArtifactOpen 1`] = `
|
||
|
{
|
||
|
"id": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
"title": "Some title",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (5) > onArtifactClose 1`] = `
|
||
|
{
|
||
|
"id": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
"title": "Some title",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (5) > onArtifactOpen 1`] = `
|
||
|
{
|
||
|
"id": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
"title": "Some title",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (6) > onArtifactClose 1`] = `
|
||
|
{
|
||
|
"id": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
"title": "Some title",
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (6) > onArtifactOpen 1`] = `
|
||
|
{
|
||
|
"id": "artifact_1",
|
||
|
"messageId": "message_1",
|
||
|
"title": "Some title",
|
||
|
}
|
||
|
`;
|