Optimise Jest run in CI (#9542)

This commit is contained in:
Michael Telatynski 2022-11-04 10:48:08 +00:00 committed by GitHub
parent 28ecdc0cb4
commit 04bc8fb71c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
55 changed files with 1388 additions and 1305 deletions

View file

@ -1,76 +1,76 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`editor/deserialize html messages escapes angle brackets 1`] = `
Array [
Object {
"text": "\\\\> \\\\\\\\<del>no formatting here\\\\\\\\</del>",
[
{
"text": "\\> \\\\<del>no formatting here\\\\</del>",
"type": "plain",
},
]
`;
exports[`editor/deserialize html messages escapes asterisks 1`] = `
Array [
Object {
"text": "\\\\*hello\\\\*",
[
{
"text": "\\*hello\\*",
"type": "plain",
},
]
`;
exports[`editor/deserialize html messages escapes backslashes 1`] = `
Array [
Object {
"text": "C:\\\\\\\\My Documents",
[
{
"text": "C:\\\\My Documents",
"type": "plain",
},
]
`;
exports[`editor/deserialize html messages escapes backticks in code blocks 1`] = `
Array [
Object {
[
{
"text": "\`\`this → \` is a backtick\`\`",
"type": "plain",
},
Object {
{
"text": "
",
"type": "newline",
},
Object {
{
"text": "
",
"type": "newline",
},
Object {
{
"text": "\`\`\`\`",
"type": "plain",
},
Object {
{
"text": "
",
"type": "newline",
},
Object {
{
"text": "and here are 3 of them:",
"type": "plain",
},
Object {
{
"text": "
",
"type": "newline",
},
Object {
{
"text": "\`\`\`",
"type": "plain",
},
Object {
{
"text": "
",
"type": "newline",
},
Object {
{
"text": "\`\`\`\`",
"type": "plain",
},
@ -78,35 +78,35 @@ Array [
`;
exports[`editor/deserialize html messages escapes backticks outside of code blocks 1`] = `
Array [
Object {
"text": "some \\\\\`backticks\\\\\`",
[
{
"text": "some \\\`backticks\\\`",
"type": "plain",
},
]
`;
exports[`editor/deserialize html messages escapes square brackets 1`] = `
Array [
Object {
"text": "\\\\[not an actual link\\\\](https://example.org)",
[
{
"text": "\\[not an actual link\\](https://example.org)",
"type": "plain",
},
]
`;
exports[`editor/deserialize html messages escapes underscores 1`] = `
Array [
Object {
"text": "\\\\_\\\\_emphasis\\\\_\\\\_",
[
{
"text": "\\_\\_emphasis\\_\\_",
"type": "plain",
},
]
`;
exports[`editor/deserialize html messages preserves nested formatting 1`] = `
Array [
Object {
[
{
"text": "a<sub>b_c**d<u>e</u>**_</sub>",
"type": "plain",
},
@ -114,26 +114,26 @@ Array [
`;
exports[`editor/deserialize html messages preserves nested quotes 1`] = `
Array [
Object {
[
{
"text": "> foo",
"type": "plain",
},
Object {
{
"text": "
",
"type": "newline",
},
Object {
{
"text": "> ",
"type": "plain",
},
Object {
{
"text": "
",
"type": "newline",
},
Object {
{
"text": "> > bar",
"type": "plain",
},
@ -141,36 +141,36 @@ Array [
`;
exports[`editor/deserialize html messages surrounds lists with newlines 1`] = `
Array [
Object {
[
{
"text": "foo",
"type": "plain",
},
Object {
{
"text": "
",
"type": "newline",
},
Object {
{
"text": "
",
"type": "newline",
},
Object {
{
"text": "- bar",
"type": "plain",
},
Object {
{
"text": "
",
"type": "newline",
},
Object {
{
"text": "
",
"type": "newline",
},
Object {
{
"text": "baz",
"type": "plain",
},