René's URL Explorer Experiment


Title: 유닛 테스트 추가 · Issue #2 · DaleStudy/github · GitHub

Open Graph Title: 유닛 테스트 추가 · Issue #2 · DaleStudy/github

X Title: 유닛 테스트 추가 · Issue #2 · DaleStudy/github

Description: 현재 상황 프로젝트에 유닛 테스트가 전혀 없습니다. 테스트 프레임워크 미설정 핵심 유틸리티 함수들의 동작 검증 불가 목표 utils/ 폴더의 핵심 유틸리티 함수에 대한 유닛 테스트 추가 테스트 파일은 애플리케이션 코드 옆에 배치 (예: github.js → github.test.js) 테스트 대상 utils/github.js createJWT() - JWT 생성 및 서명 importPrivateKey() - PKCS8 P...

Open Graph Description: 현재 상황 프로젝트에 유닛 테스트가 전혀 없습니다. 테스트 프레임워크 미설정 핵심 유틸리티 함수들의 동작 검증 불가 목표 utils/ 폴더의 핵심 유틸리티 함수에 대한 유닛 테스트 추가 테스트 파일은 애플리케이션 코드 옆에 배치 (예: github.js → github.test.js) 테스트 대상 utils/github.js createJWT() - ...

X Description: 현재 상황 프로젝트에 유닛 테스트가 전혀 없습니다. 테스트 프레임워크 미설정 핵심 유틸리티 함수들의 동작 검증 불가 목표 utils/ 폴더의 핵심 유틸리티 함수에 대한 유닛 테스트 추가 테스트 파일은 애플리케이션 코드 옆에 배치 (예: github.js → github.test.js) 테스트 대상 utils/github.js createJWT() - ...

Opengraph URL: https://github.com/DaleStudy/github/issues/2

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"유닛 테스트 추가","articleBody":"## 현재 상황\n\n프로젝트에 **유닛 테스트가 전혀 없습니다**.\n\n- 테스트 프레임워크 미설정\n- 핵심 유틸리티 함수들의 동작 검증 불가\n\n## 목표\n\n`utils/` 폴더의 핵심 유틸리티 함수에 대한 유닛 테스트 추가\n\n**테스트 파일은 애플리케이션 코드 옆에 배치** (예: `github.js` → `github.test.js`)\n\n## 테스트 대상\n\n### `utils/github.js`\n- [ ] `createJWT()` - JWT 생성 및 서명\n- [ ] `importPrivateKey()` - PKCS8 Private Key 파싱\n- [ ] `sign()` - RS256 서명 생성\n- [ ] `base64UrlEncode()` - Base64 URL 인코딩\n\n### `utils/cors.js`\n- [ ] `corsResponse()` - CORS 헤더 포함 응답\n- [ ] `errorResponse()` - 에러 응답 포맷\n\n## 파일 구조\n\n```\nutils/\n├── github.js\n├── github.test.js          # 새로 추가\n├── cors.js\n├── cors.test.js            # 새로 추가\n├── webhook.js\n└── ... (기타 파일들)\n```\n\n## 구현 가이드\n\n### 1. 테스트 프레임워크 설치\n\n```bash\nnpm install -D vitest\n```\n\n### 2. 설정 파일 생성\n\n`vitest.config.js`:\n```javascript\nimport { defineConfig } from 'vitest/config';\n\nexport default defineConfig({\n  test: {\n    globals: true,\n  },\n});\n```\n\n### 3. package.json에 스크립트 추가\n\n```json\n{\n  \"scripts\": {\n    \"test\": \"vitest run\",\n    \"test:watch\": \"vitest\"\n  }\n}\n```\n\n### 4. 테스트 파일 작성 예시\n\n`utils/github.test.js`:\n```javascript\nimport { describe, it, expect } from 'vitest';\nimport { base64UrlEncode } from './github.js';\n\ndescribe('base64UrlEncode', () =\u003e {\n  it('should encode Uint8Array to base64url', () =\u003e {\n    const input = new Uint8Array([72, 101, 108, 108, 111]);\n    const result = base64UrlEncode(input);\n    \n    expect(result).toBe('SGVsbG8');\n  });\n});\n```\n\n`utils/cors.test.js`:\n```javascript\nimport { describe, it, expect } from 'vitest';\nimport { corsResponse, errorResponse } from './cors.js';\n\ndescribe('corsResponse', () =\u003e {\n  it('should include CORS headers', () =\u003e {\n    const response = corsResponse({ success: true });\n    \n    expect(response.headers.get('Access-Control-Allow-Origin')).toBe('*');\n  });\n});\n\ndescribe('errorResponse', () =\u003e {\n  it('should return error with status code', () =\u003e {\n    const response = errorResponse('Not found', 404);\n    \n    expect(response.status).toBe(404);\n  });\n});\n```\n\n## 체크리스트\n\n- [ ] Vitest 설치\n- [ ] `vitest.config.js` 생성\n- [ ] `package.json`에 test 스크립트 추가\n- [ ] `utils/github.test.js` 작성\n- [ ] `utils/cors.test.js` 작성\n- [ ] `npm test`로 모든 테스트 통과 확인\n\n## 참고\n\n- [Vitest 공식 문서](https://vitest.dev/)\n- [Cloudflare Workers 테스트](https://developers.cloudflare.com/workers/testing/vitest-integration/)\n","author":{"url":"https://github.com/DaleSeo","@type":"Person","name":"DaleSeo"},"datePublished":"2025-11-15T16:46:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2/github/issues/2"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:37920c26-0348-1e88-00fc-ceace7471ff3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA2D2:116AF0:4EE874:6D3E76:697215F6
html-safe-noncebfb5310540a956698c5e346434ba2f0d3ae7f840d633e31f3c1b185406326907
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkQyOjExNkFGMDo0RUU4NzQ6NkQzRTc2OjY5NzIxNUY2IiwidmlzaXRvcl9pZCI6IjEzODY5MTM5ODc1NDE3MzQ5MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacbf57c750f55ca1be8b7e3bfec2fc174d3e31ca7b9b57e3edd5c53985df7b907c
hovercard-subject-tagissue:3628937461
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/DaleStudy/github/2/issue_layout
twitter:imagehttps://opengraph.githubassets.com/71fc5e8837b065e9ed2deb0b750871518e67d8d4188ab7e0335de58dd6121cdc/DaleStudy/github/issues/2
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/71fc5e8837b065e9ed2deb0b750871518e67d8d4188ab7e0335de58dd6121cdc/DaleStudy/github/issues/2
og:image:alt현재 상황 프로젝트에 유닛 테스트가 전혀 없습니다. 테스트 프레임워크 미설정 핵심 유틸리티 함수들의 동작 검증 불가 목표 utils/ 폴더의 핵심 유틸리티 함수에 대한 유닛 테스트 추가 테스트 파일은 애플리케이션 코드 옆에 배치 (예: github.js → github.test.js) 테스트 대상 utils/github.js createJWT() - ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDaleSeo
hostnamegithub.com
expected-hostnamegithub.com
None7aea209b12f15b5742ac38170cf1d21874bf205eb5ad0cac666cd92599fc4cbc
turbo-cache-controlno-preview
go-importgithub.com/DaleStudy/github git https://github.com/DaleStudy/github.git
octolytics-dimension-user_id103336331
octolytics-dimension-user_loginDaleStudy
octolytics-dimension-repository_id1090658831
octolytics-dimension-repository_nwoDaleStudy/github
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1090658831
octolytics-dimension-repository_network_root_nwoDaleStudy/github
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3ff289e97142545d3d22ade4ca0ecba5005b7322
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/DaleStudy/github/issues/2#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FDaleStudy%2Fgithub%2Fissues%2F2
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FDaleStudy%2Fgithub%2Fissues%2F2
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=DaleStudy%2Fgithub
Reloadhttps://patch-diff.githubusercontent.com/DaleStudy/github/issues/2
Reloadhttps://patch-diff.githubusercontent.com/DaleStudy/github/issues/2
Reloadhttps://patch-diff.githubusercontent.com/DaleStudy/github/issues/2
DaleStudy https://patch-diff.githubusercontent.com/DaleStudy
githubhttps://patch-diff.githubusercontent.com/DaleStudy/github
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FDaleStudy%2Fgithub
Fork 0 https://patch-diff.githubusercontent.com/login?return_to=%2FDaleStudy%2Fgithub
Star 1 https://patch-diff.githubusercontent.com/login?return_to=%2FDaleStudy%2Fgithub
Code https://patch-diff.githubusercontent.com/DaleStudy/github
Issues 1 https://patch-diff.githubusercontent.com/DaleStudy/github/issues
Pull requests 0 https://patch-diff.githubusercontent.com/DaleStudy/github/pulls
Actions https://patch-diff.githubusercontent.com/DaleStudy/github/actions
Projects 0 https://patch-diff.githubusercontent.com/DaleStudy/github/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/DaleStudy/github/security
Please reload this pagehttps://patch-diff.githubusercontent.com/DaleStudy/github/issues/2
Insights https://patch-diff.githubusercontent.com/DaleStudy/github/pulse
Code https://patch-diff.githubusercontent.com/DaleStudy/github
Issues https://patch-diff.githubusercontent.com/DaleStudy/github/issues
Pull requests https://patch-diff.githubusercontent.com/DaleStudy/github/pulls
Actions https://patch-diff.githubusercontent.com/DaleStudy/github/actions
Projects https://patch-diff.githubusercontent.com/DaleStudy/github/projects
Security https://patch-diff.githubusercontent.com/DaleStudy/github/security
Insights https://patch-diff.githubusercontent.com/DaleStudy/github/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/DaleStudy/github/issues/2
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/DaleStudy/github/issues/2
유닛 테스트 추가https://patch-diff.githubusercontent.com/DaleStudy/github/issues/2#top
enhancementNew feature or requesthttps://github.com/DaleStudy/github/issues?q=state%3Aopen%20label%3A%22enhancement%22
good first issueGood for newcomershttps://github.com/DaleStudy/github/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
https://github.com/DaleSeo
https://github.com/DaleSeo
DaleSeohttps://github.com/DaleSeo
on Nov 15, 2025https://github.com/DaleStudy/github/issues/2#issue-3628937461
Vitest 공식 문서https://vitest.dev/
Cloudflare Workers 테스트https://developers.cloudflare.com/workers/testing/vitest-integration/
enhancementNew feature or requesthttps://github.com/DaleStudy/github/issues?q=state%3Aopen%20label%3A%22enhancement%22
good first issueGood for newcomershttps://github.com/DaleStudy/github/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.