Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony committed Apr 5, 2023
1 parent 03d2a78 commit d3645d5
Show file tree
Hide file tree
Showing 51 changed files with 203 additions and 241 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import firaCode from '@next/font/google/target.css?{"arguments":[],"import":"Abel","path":"pages/test.tsx","variableName":"firaCode"}';
import inter from '@next/font/google/target.css?{"arguments":[],"import":"Inter","path":"pages/test.tsx","variableName":"inter"}';
import firaCode from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Abel","arguments":[],"variableName":"firaCode"}';
import inter from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Inter","arguments":[],"variableName":"inter"}';
import React from 'react';
export { firaCode };
export { inter };
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import inter1 from '@next/font/google/target.css?{"arguments":[{"variant":"400"}],"import":"Inter","path":"pages/test.tsx","variableName":"inter1"}';
import inter2 from '@next/font/google/target.css?{"arguments":[{"variant":"400"}],"import":"Inter","path":"pages/test.tsx","variableName":"inter2"}';
import inter1 from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Inter","arguments":[{"variant":"400"}],"variableName":"inter1"}';
import inter2 from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Inter","arguments":[{"variant":"400"}],"variableName":"inter2"}';
var i = 10;
var i2 = 20;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import a from '@next/font/google/target.css?{"arguments":[{}],"import":"ABeeZee","path":"pages/test.tsx","variableName":"a"}';
import a from '@next/font/google/target.css?{"arguments":[{}],"import":"ABeeZee","path":"pages/test.tsx","variableName":"a"}';
import a from '@next/font/google/target.css?{"arguments":[{}],"import":"ABeeZee","path":"pages/test.tsx","variableName":"a"}';
import a from '@next/font/google/target.css?{"arguments":[{}],"import":"ABeeZee","path":"pages/test.tsx","variableName":"a"}';
import a from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"ABeeZee","arguments":[{}],"variableName":"a"}';
import a from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"ABeeZee","arguments":[{}],"variableName":"a"}';
import a from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"ABeeZee","arguments":[{}],"variableName":"a"}';
import a from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"ABeeZee","arguments":[{}],"variableName":"a"}';
const a = fn({
10: 'hello'
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import inter from '@next/font/google/target.css?{"arguments":[{},[]],"import":"Inter","path":"pages/test.tsx","variableName":"inter"}';
import inter from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Inter","arguments":[{},[]],"variableName":"inter"}';
const a = fn(...{}, ...[]);
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import font from 'cool-fonts/target.css?{"arguments":[{"prop":true}],"import":"","path":"pages/test.tsx","variableName":"font"}';
import font from 'cool-fonts/target.css?{"path":"pages/test.tsx","import":"","arguments":[{"prop":true}],"variableName":"font"}';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import firaCode from '@next/font/google/target.css?{"arguments":[],"import":"Abel","path":"pages/test.tsx","variableName":"firaCode"}';
import inter from '@next/font/google/target.css?{"arguments":[],"import":"Inter","path":"pages/test.tsx","variableName":"inter"}';
import firaCode from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Abel","arguments":[],"variableName":"firaCode"}';
import inter from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Inter","arguments":[],"variableName":"inter"}';
import React from 'react';
export { firaCode };
export { inter };
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import firaCode from '@next/font/google/target.css?{"arguments":[],"import":"Abel","path":"pages/test.tsx","variableName":"firaCode"}';
import inter from '@next/font/google/target.css?{"arguments":[],"import":"Inter","path":"pages/test.tsx","variableName":"inter"}';
import firaCode from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Abel","arguments":[],"variableName":"firaCode"}';
import inter from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Inter","arguments":[],"variableName":"inter"}';
import React from 'react';
export { firaCode };
export default inter;
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import firaCode from '@next/font/google/target.css?{"arguments":[{"fallback":["system-ui",{"key":false},[]],"key":{"key2":{}},"preload":true,"variant":"400"}],"import":"Fira_Code","path":"pages/test.tsx","variableName":"firaCode"}';
import firaCode from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Fira_Code","arguments":[{"variant":"400","fallback":["system-ui",{"key":false},[]],"preload":true,"key":{"key2":{}}}],"variableName":"firaCode"}';
import React from 'react';
console.log(firaCode);
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import acme1 from 'cool-fonts/target.css?{"arguments":[{"variant":"400"}],"import":"Acme","path":"pages/test.tsx","variableName":"acme1"}';
import acme1 from 'cool-fonts/target.css?{"path":"pages/test.tsx","import":"Acme","arguments":[{"variant":"400"}],"variableName":"acme1"}';
import React from 'react';
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import geo from '@next/font/google/target.css?{"arguments":["test",[1.0],{"a":2.0},3.0],"import":"Geo","path":"pages/test.tsx","variableName":"geo"}';
import geo from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Geo","arguments":["test",[1.0],{"a":2.0},3.0],"variableName":"geo"}';
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import inter from '@next/font/google/target.css?{"arguments":[{"display":"swap","variant":"900"}],"import":"Inter","path":"pages/test.tsx","variableName":"inter"}';
import inter from '@next/font/google/target.css?{"arguments":[{"display":"swap","variant":"900"}],"import":"Inter","path":"pages/test.tsx","variableName":"inter"}';
import inter from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Inter","arguments":[{"variant":"900","display":"swap"}],"variableName":"inter"}';
import inter from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Inter","arguments":[{"variant":"900","display":"swap"}],"variableName":"inter"}';
import React from 'react';
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import inter from '@next/font/google/target.css?{"arguments":[{"variant":"900"}],"import":"Inter","path":"pages/test.tsx","variableName":"inter"}';
import fira from 'cool-fonts/target.css?{"arguments":[{"display":"swap","variant":"400"}],"import":"Fira_Code","path":"pages/test.tsx","variableName":"fira"}';
import inter from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Inter","arguments":[{"variant":"900"}],"variableName":"inter"}';
import fira from 'cool-fonts/target.css?{"path":"pages/test.tsx","import":"Fira_Code","arguments":[{"variant":"400","display":"swap"}],"variableName":"fira"}';
import React from 'react';
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import firaCode from '@next/font/google/target.css?{"arguments":[{"fallback":["system-ui"],"variant":"400"}],"import":"Fira_Code","path":"pages/test.tsx","variableName":"firaCode"}';
import inter from '@next/font/google/target.css?{"arguments":[{"display":"swap","variant":"900"}],"import":"Inter","path":"pages/test.tsx","variableName":"inter"}';
import firaCode from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Fira_Code","arguments":[{"variant":"400","fallback":["system-ui"]}],"variableName":"firaCode"}';
import inter from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Inter","arguments":[{"variant":"900","display":"swap"}],"variableName":"inter"}';
import React from 'react';
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import inter from '@next/font/google/target.css?{"arguments":[{"variant":"900"}],"import":"Inter","path":"pages/test.tsx","variableName":"inter"}';
import fira from '@next/font/google/target.css?{"arguments":[{"display":"swap","variant":"400"}],"import":"Fira_Code","path":"pages/test.tsx","variableName":"fira"}';
import inter from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Inter","arguments":[{"variant":"900"}],"variableName":"inter"}';
import fira from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Fira_Code","arguments":[{"variant":"400","display":"swap"}],"variableName":"fira"}';
import React from 'react';
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import fira from '@next/font/google/target.css?{"arguments":[],"import":"Fira_Code","path":"pages/test.tsx","variableName":"fira"}';
import fira from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Fira_Code","arguments":[],"variableName":"fira"}';
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ PlainIssue {
column: 5,
},
end: SourcePos {
line: 3,
column: 35,
line: 4,
column: 0,
},
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ PlainIssue {
column: 3,
},
end: SourcePos {
line: 13,
column: 19,
line: 14,
column: 0,
},
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ PlainIssue {
column: 3,
},
end: SourcePos {
line: 5,
column: 19,
line: 6,
column: 0,
},
},
),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import dynamic from 'next/dynamic';
const DynamicComponentWithCustomLoading = dynamic(()=>import('../components/hello'), {
loading: ()=><p >...</p>
}, "3rd");
loading: ()=><p>...</p>
}, '3rd');
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import dynamic from 'next/dynamic';
const DynamicComponentWithCustomLoading = dynamic(()=>import('../components/hello'), {
loading: ()=><p >...</p>
}, "3rd");
loading: ()=><p>...</p>
}, '3rd');
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
x You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps
,-[input.js:1:1]
1 | export async function getStaticPaths() {}
2 | export const getServerSideProps = function getServerSideProps() {};
2 | export const getServerSideProps = function getServerSideProps() {}
: ^^^^^^^^^^^^^^^^^^
`----
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

x You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps
,-[input.js:1:1]
1 | export const getStaticProps = async () => {};
2 | export { a as getServerSideProps };
1 | export const getStaticProps = async () => {}
2 | export { a as getServerSideProps }
: ^^^^^^^^^^^^^^^^^^
`----
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

x You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps
,-[input.js:1:1]
1 | export { a as getServerSideProps } from "./input";
2 | export { getStaticPaths } from "a";
1 | export { a as getServerSideProps } from './input'
2 | export { getStaticPaths } from 'a'
: ^^^^^^^^^^^^^^
`----
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

x You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps
,-[input.js:1:1]
1 | export { getStaticProps, getServerSideProps };
1 | export { getStaticProps, getServerSideProps }
: ^^^^^^^^^^^^^^^^^^
`----
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import fs from "fs";
import other from "other";
import fs from 'fs';
import other from 'other';
const [a, b, ...rest] = fs.promises;
const [foo, bar] = other;
export async function getServerSideProps() {
a;
b;
rest;
bar;
a;
b;
rest;
bar;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import other from "other";
import other from 'other';
const [foo] = other;
export var __N_SSP = true;
export default function Home() {
return __jsx("div", null);
return __jsx("div", null);
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import fs from "fs";
import other from "other";
import fs from 'fs';
import other from 'other';
const [a, b, ...rest] = fs.promises;
const [foo, bar] = other;
export async function getStaticProps() {
a;
b;
rest;
bar;
a;
b;
rest;
bar;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import other from "other";
import other from 'other';
const [foo] = other;
export var __N_SSG = true;
export default function Home() {
return __jsx("div", null);
return __jsx("div", null);
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import fs from "fs";
import other from "other";
import fs from 'fs';
import other from 'other';
let a, b, rest;
[a, b, ...rest] = fs.promises;
let foo, bar;
[foo, bar] = other;
export async function getStaticProps() {
a;
b;
rest;
bar;
a;
b;
rest;
bar;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import other from "other";
import other from 'other';
let foo;
[foo] = other;
export var __N_SSG = true;
export default function Home() {
return __jsx("div", null);
return __jsx("div", null);
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import fs from "fs";
import other from "other";
const { readFile, readdir, access: foo } = fs.promises;
const { a, b, cat: bar, ...rem } = other;
import fs from 'fs';
import other from 'other';
const { readFile , readdir , access: foo } = fs.promises;
const { a , b , cat: bar , ...rem } = other;
export async function getStaticProps() {
readFile;
readdir;
foo;
b;
cat;
rem;
readFile;
readdir;
foo;
b;
cat;
rem;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import other from "other";
const { a, cat: bar } = other;
import other from 'other';
const { a , cat: bar } = other;
export var __N_SSG = true;
export default function Home() {
return __jsx("div", null);
return __jsx("div", null);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export async function getStaticProps() {
await import("_http_common").then((http) => console.log(http));
return {
props: {},
};
await import('_http_common').then((http)=>console.log(http));
return {
props: {}
};
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
function Function1() {
return {
a: function bug(a) {
return 2;
},
};
return {
a: function bug(a) {
return 2;
}
};
}
function Function2() {
var bug = 1;
return {
bug,
};
var bug = 1;
return {
bug
};
}
export { getStaticProps } from "a";
export { getStaticProps } from 'a';
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { foo, bar } from "thing";

import { foo, bar } from 'thing';
export function otherExport() {
foo;
bar;
foo;
bar;
}

export async function getStaticProps() {
bar;
bar;
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { foo, bar } from "thing";

import { foo, bar } from 'thing';
export var __N_SSG = true;
export default function Home() {
foo;
return __jsx("div", null);
foo;
return __jsx("div", null);
}

export function otherExport() {
foo;
bar;
foo;
bar;
}
Loading

0 comments on commit d3645d5

Please sign in to comment.