chore: do not print prototype in jest snapshot (#6908)

This commit is contained in:
Joshua Chen 2022-03-13 19:34:50 +08:00 committed by GitHub
parent 3a4b9b4c30
commit 8c1e518ba2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 1536 additions and 1519 deletions

View file

@ -1,28 +1,28 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`docusaurus-plugin-content-pages loads simple pages 1`] = `
Array [
Object {
[
{
"permalink": "/",
"source": "@site/src/pages/index.js",
"type": "jsx",
},
Object {
{
"permalink": "/typescript",
"source": "@site/src/pages/typescript.tsx",
"type": "jsx",
},
Object {
{
"description": "Markdown index page",
"frontMatter": Object {},
"frontMatter": {},
"permalink": "/hello/",
"source": "@site/src/pages/hello/index.md",
"title": "Index",
"type": "mdx",
},
Object {
{
"description": "my mdx page",
"frontMatter": Object {
"frontMatter": {
"description": "my mdx page",
"title": "mdx page",
},
@ -31,20 +31,20 @@ Array [
"title": "mdx page",
"type": "mdx",
},
Object {
{
"permalink": "/hello/translatedJs",
"source": "@site/src/pages/hello/translatedJs.js",
"type": "jsx",
},
Object {
{
"description": "translated markdown page",
"frontMatter": Object {},
"frontMatter": {},
"permalink": "/hello/translatedMd",
"source": "@site/src/pages/hello/translatedMd.md",
"title": undefined,
"type": "mdx",
},
Object {
{
"permalink": "/hello/world",
"source": "@site/src/pages/hello/world.js",
"type": "jsx",
@ -53,28 +53,28 @@ Array [
`;
exports[`docusaurus-plugin-content-pages loads simple pages with french translations 1`] = `
Array [
Object {
[
{
"permalink": "/",
"source": "@site/src/pages/index.js",
"type": "jsx",
},
Object {
{
"permalink": "/typescript",
"source": "@site/src/pages/typescript.tsx",
"type": "jsx",
},
Object {
{
"description": "Markdown index page",
"frontMatter": Object {},
"frontMatter": {},
"permalink": "/hello/",
"source": "@site/src/pages/hello/index.md",
"title": "Index",
"type": "mdx",
},
Object {
{
"description": "my mdx page",
"frontMatter": Object {
"frontMatter": {
"description": "my mdx page",
"title": "mdx page",
},
@ -83,20 +83,20 @@ Array [
"title": "mdx page",
"type": "mdx",
},
Object {
{
"permalink": "/hello/translatedJs",
"source": "@site/i18n/fr/docusaurus-plugin-content-pages/hello/translatedJs.js",
"type": "jsx",
},
Object {
{
"description": "translated markdown page (fr)",
"frontMatter": Object {},
"frontMatter": {},
"permalink": "/hello/translatedMd",
"source": "@site/i18n/fr/docusaurus-plugin-content-pages/hello/translatedMd.md",
"title": undefined,
"type": "mdx",
},
Object {
{
"permalink": "/hello/world",
"source": "@site/src/pages/hello/world.js",
"type": "jsx",