-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update deps * fix: handle migration * fix: eslint configuration at core * fix: set test isolation * fix: delete seperated packages * fix: restore lintstaged * fix: restore about test * test: handle e2e test * test: wait window load * test: wait until color changed * test: change variable name with waitin * test: change resume header test like blog * test: delete args for size mediaQuery
- Loading branch information
Showing
28 changed files
with
2,978 additions
and
2,092 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"*.{js,jsx,ts,tsx}": ["yarn lint:fix"] | ||
"*.{js,jsx,ts,tsx}": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
...ypress/e2e/root/store-restoration.spec.ts → ...press/e2e/root/scroll-restoration.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
describe('root - store restoration', () => { | ||
describe('root - store restoration', { testIsolation: false }, () => { | ||
it('should restore scroll position when reload', () => { | ||
const SCROLL_Y_POSITION = 200; | ||
const SCROLL_Y_POSITION = 30; | ||
|
||
cy.visit('/'); | ||
cy.wait(1000); | ||
cy.window().then($window => { | ||
$window.scrollTo(0, SCROLL_Y_POSITION); | ||
}); | ||
|
||
cy.reload(); | ||
cy.wait(2000); | ||
|
||
cy.window().its('scrollY').should('eq', SCROLL_Y_POSITION); | ||
cy.window().its('scrollY').should('not.eq', 0); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
const withTM = require('next-transpile-modules')(['core']); | ||
const CompressionPlugin = require('compression-webpack-plugin'); | ||
|
||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
reactStrictMode: true, | ||
eslint: { | ||
ignoreDuringBuilds: true, | ||
}, | ||
transpilePackages: ['core'], | ||
compress: true, | ||
swcMinify: true, | ||
pageExtensions: ['page.tsx', 'page.ts', 'page.jsx', 'page.js'], | ||
basePath: process.env.NEXT_PUBLIC_BASE_PATH, | ||
assetPrefix: process.env.NEXT_PUBLIC_BASE_PATH, | ||
}; | ||
|
||
module.exports = withTM({ | ||
webpack(config) { | ||
const plugins = [...config.plugins, new CompressionPlugin()]; | ||
return { ...config, plugins }; | ||
}, | ||
...nextConfig, | ||
}); | ||
module.exports = nextConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"extends": "tsconfig/config-nextjs.json", | ||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], | ||
"exclude": ["node_modules", "**/*.spec.ts", "**/*.test.ts", "**/*.spec.tsx", "**/*.test.tsx"] | ||
"exclude": ["node_modules", "**/*.spec.ts", "**/*.test.ts", "**/*.spec.tsx", "**/*.test.tsx"], | ||
"compilerOptions": { "types": ["@emotion/react/types/css-prop"] } | ||
// note: extending exclude must have baseUrl | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
const withTM = require('next-transpile-modules')(['core']); | ||
const CompressionPlugin = require('compression-webpack-plugin'); | ||
|
||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
reactStrictMode: true, | ||
eslint: { | ||
ignoreDuringBuilds: true, | ||
}, | ||
transpilePackages: ['core'], | ||
compress: true, | ||
swcMinify: true, | ||
pageExtensions: ['page.tsx', 'page.ts', 'page.jsx', 'page.js'], | ||
basePath: process.env.NEXT_PUBLIC_BASE_PATH, | ||
assetPrefix: process.env.NEXT_PUBLIC_BASE_PATH, | ||
}; | ||
|
||
module.exports = withTM({ | ||
webpack(config) { | ||
const plugins = [...config.plugins, new CompressionPlugin()]; | ||
return { ...config, plugins }; | ||
}, | ||
...nextConfig, | ||
}); | ||
module.exports = nextConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
6ba7bc6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
comet-land-blog – ./apps/blog
comet-land-blog.vercel.app
comet-land-blog-git-main-hyesungoh.vercel.app
comet-land-blog-hyesungoh.vercel.app
6ba7bc6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
comet-land-resume – ./apps/resume
comet-land-resume-git-main-hyesungoh.vercel.app
comet-land-resume-hyesungoh.vercel.app
comet-land-resume.vercel.app