Moment.js 업그레이드 및 호환성 테스트 추가:

- 최신 버전(2.30.1)으로 업데이트 및 CVE-2022-24785 대응
- 브라우저 기반 date-range 동작 검증 및 Playwright 테스트 추가
- 윤년/서머타임 처리 및 CommonJS 보안 회귀 검증
This commit is contained in:
Rinjae
2026-09-09 16:00:13 +09:00
parent 09bc3a65f5
commit d9373b00f0
13 changed files with 317 additions and 136 deletions
+21
View File
@@ -0,0 +1,21 @@
const { defineConfig } = require('@playwright/test');
module.exports = defineConfig({
testDir: __dirname,
testMatch: 'moment-compatibility.spec.js',
outputDir: '../../../build/playwright',
fullyParallel: true,
workers: 2,
reporter: 'list',
use: {
browserName: 'chromium',
locale: 'ko-KR',
viewport: { width: 1280, height: 800 },
trace: 'retain-on-failure',
screenshot: 'only-on-failure'
},
projects: [
{ name: 'seoul', use: { timezoneId: 'Asia/Seoul' } },
{ name: 'new-york', use: { timezoneId: 'America/New_York' } }
]
});