Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Deploy] version 1.0.0 #74

Merged
merged 35 commits into from
Aug 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
3f00bfc
chore: 테스트를 위한 package json 설정 및 프로젝트 설정 (CC-178)
Dunkkkk Aug 23, 2024
cc73e95
fix: test를 위한 임시 변경 (CC-178)
Dunkkkk Aug 23, 2024
3facc2c
feat: hyundux 상태를 관리할 수 있는 Test module 생성 (CC-178)
Dunkkkk Aug 23, 2024
644ccc8
fix: Doaction 삭제 (CC-178)
Dunkkkk Aug 23, 2024
bf4cc54
chore: test 기본 coverage보이게 변경 (CC-178)
Dunkkkk Aug 23, 2024
fb0d5a0
test: 임시 테스트 코드 작성 (CC-178)
Dunkkkk Aug 23, 2024
7351e78
[Test] FindingGame Click Action test (CC-178)
Dunkkkk Aug 23, 2024
ee61ef7
[fix] npm scripts의 test 와 test --coverage로 분기화 (CC-178)
Dunkkkk Aug 23, 2024
403bf05
feat: saga test 구현 (CC-178)
Dunkkkk Aug 23, 2024
79115c8
a
Dunkkkk Aug 23, 2024
108019b
fix: 레이싱 게임 스페이스바 이벤트 리스너 추가 및 삭제를 최상단 div의 useRef를 사용하여 구현
minani-0621 Aug 23, 2024
249b556
fix: 레이싱 게임 응모 시 커스텀 옵션의 id 1~5로 수정
minani-0621 Aug 24, 2024
ece6bbe
fix: 레이싱 게임 playingSound 10초 버전으로 수정
minani-0621 Aug 24, 2024
766ab4c
comment: 불필요한 주석 삭제
minani-0621 Aug 24, 2024
8524c6e
fix: 레이싱 게임 랜딩페이지에 이벤트 기간 이미지 수정
minani-0621 Aug 25, 2024
23811a8
fix: 레이싱 게임 이벤트 기간 수정
minani-0621 Aug 25, 2024
24ba3a6
fix: 레이싱 게임 랜딩페이지 HowToEvent 섹션에 게임 속도 랜덤이라고 명시
minani-0621 Aug 25, 2024
13ae77c
refactor: useKeyBoardControl 커스텀 훅 구현
minani-0621 Aug 25, 2024
3221d53
fix: useKeyBoardControl 커스텀 훅 적용 및 게임 플레이 시간 랜덤으로 작동하게 구현
minani-0621 Aug 25, 2024
2d85e3f
fix: 숨은 캐스퍼 찾기 이벤트 오픈에 클론 위치 수정
minani-0621 Aug 25, 2024
fcc1a19
Merge pull request #71 from softeerbootcamp4th/hotfix/racingGameSpace…
minani-0621 Aug 25, 2024
78a0f9b
Update README.md
minani-0621 Aug 25, 2024
6465409
Update README.md
minani-0621 Aug 25, 2024
79454f9
hotfix: 리렉토리 구조 변경에 따른 파일 위치 수정
minani-0621 Aug 25, 2024
39b22e4
hotfix: 폴더명 수정에 따른 import문 수정
minani-0621 Aug 25, 2024
31c767d
hotfix: 이벤트 일정에 따른 콘텐츠 텍스트 수정
minani-0621 Aug 25, 2024
515dfca
hotfix: 숨은 캐스퍼 찾기 게임 내의 사진이 짤리는 에러 수정
minani-0621 Aug 25, 2024
3f461e4
Merge pull request #72 from softeerbootcamp4th/hotfix/updateChore
minani-0621 Aug 25, 2024
7d4b5df
hotfix: head 태그 내에 아이콘과 타이틀 수정
minani-0621 Aug 25, 2024
d4b7b59
hotfix: 레이싱 게임에서 드래그 되지 않아야 할 gameMenu와 gameContent에 select-none 적용
minani-0621 Aug 25, 2024
b40f229
hotfix: EventInfoLanding의 DarkTeaserCasper에 그라데이션 텍스트가 적용이 안 되어 있던 점 수정
minani-0621 Aug 25, 2024
bcf350b
Merge pull request #73 from softeerbootcamp4th/hotfix/updateChore
Dunkkkk Aug 25, 2024
f6b5628
fix: build에러 해결 (CC-178)
Dunkkkk Aug 25, 2024
cd09c61
Merge branch 'develop' into CC-178
Dunkkkk Aug 25, 2024
1f12b8d
Merge pull request #63 from softeerbootcamp4th/CC-178
Dunkkkk Aug 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Caecae/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
env: { browser: true, es2020: true,node: true, jest: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
Expand Down
141 changes: 141 additions & 0 deletions Caecae/__tests__/FindGameTest/FindGameTest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
import {
initFindingGameState,
action,
findingGameReducer,
} from "../../src/jobs/FindingGame/FindingGameWork";
import { Action } from "../../src/shared/Hyundux"
import createHynduxTester from "../../src/shared/Hyundux-test/Tester";

const tester = createHynduxTester(initFindingGameState, findingGameReducer);

test("결과보여지는 것들의 인덱스변경_입력값:1 -> 결과값 1 (옮은 테스트)", () => {
const givenData = initFindingGameState.payload;
const whenData: Action = action.changeShowingAnswer(1);
const thenData = tester.makeThenPayload({ answerIndex: 1 })

tester.given(givenData).when(whenData).then(thenData, true);
});

test("결과보여지는 것들의 인덱스변경_입력값:2 -> 결과값 1 (잘못된 테스트)", () => {
const givenData = initFindingGameState.payload;
const whenData: Action = action.changeShowingAnswer(2);
const thenData = tester.makeThenPayload({ answerIndex: 1 })

tester.given(givenData).when(whenData).then(thenData, false);
});

test("클릭 이벤트:입력값 [{x: 0.5 y: 0.5}] -> 결과값 answers.length == 1, answers = [answer{ x: 0.5. y: 0.5 }] (옳은 테스트)", () => {
const givenData = initFindingGameState.payload;
const whenData: Action = action.click({ request: {
answerList: [
{ positionX: 0.5, positionY: 0.5 },
]
}, response: {
responseCode: 1000,
message: "success",
data: {
ticketIryd: "1212",
startTime: "asdsad",
correctAnswerList: [
{
positionX: 0.5,
positionY: 0.5,
descriptionImageUrl: "",
title: "",
content: ""
}
]
}
}})

const thenData = tester.makeThenPayload({ showingAnswers: [{
positionX: 0.5,
positionY: 0.5,
descriptionImageUrl: "",
title: "",
content: ""
}]})

tester.given(givenData).when(whenData).then(thenData, true);
});

test("클릭 이벤트:입력값 [{x: 0.5 y: 0.5}, 틀린답 {x: 0.7, y: 0.1}] -> 결과값 answers.length == 1, answers = [answer{ x: 0.5. y: 0.5 }] (옳은 테스트)", () => {
const givenData = initFindingGameState.payload;
const whenData: Action = action.click({ request: {
answerList: [
{ positionX: 0.5, positionY: 0.5 },
{ positionX: 0.7, positionY: 0.1 }
]
}, response: {
responseCode: 1000,
message: "success",
data: {
ticketIryd: "1212",
startTime: "asdsad",
correctAnswerList: [
{
positionX: 0.5,
positionY: 0.5,
descriptionImageUrl: "",
title: "",
content: ""
}
]
}
}})

const thenData = tester.makeThenPayload({ showingAnswers: [{
positionX: 0.5,
positionY: 0.5,
descriptionImageUrl: "",
title: "",
content: ""
}] })

tester.given(givenData).when(whenData).then(thenData, true);
});

test("클릭 이벤트:입력값 [{x: 0.5 y: 0.5}, 맞은답 {x: 0.7, y: 0.1}] -> 결과값 answers.length == 2, answers = [answer{ x: 0.5. y: 0.5 }, {x: 0.7, y: 0.1}] (잘못된 테스트)", () => {
console.log("gameStatuse가 바뀌어야함")
console.log("tickerID도 바뀌어야함 바뀌어야함")
const givenData = initFindingGameState.payload;
const whenData: Action = action.click({ request: {
answerList: [
{ positionX: 0.5, positionY: 0.5 },
{ positionX: 0.7, positionY: 0.1 },
]
}, response: {
responseCode: 1000,
message: "success",
data: {
ticketIryd: "1212",
startTime: "asdsad",
correctAnswerList: [
{
positionX: 0.5,
positionY: 0.5,
descriptionImageUrl: "",
title: "",
content: ""
},
{
positionX: 0.7,
positionY: 0.1,
descriptionImageUrl: "",
title: "",
content: ""
}
]
}
}})

const thenData = tester.makeThenPayload({ showingAnswers: [{
positionX: 0.5,
positionY: 0.5,
descriptionImageUrl: "",
title: "",
content: ""
}]})

tester.given(givenData).when(whenData).then(thenData, false);
});
4 changes: 2 additions & 2 deletions Caecae/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="./public/assets/whiteBadge.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>Caecae</title>
</head>
<body>
<div id="root"></div>
Expand Down
6 changes: 6 additions & 0 deletions Caecae/jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
testMatch: ['**/__tests__/**/*.ts', '**/?(*.)+(spec|test).ts?(x)'],
};
121 changes: 114 additions & 7 deletions Caecae/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions Caecae/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"test --coverage": "jest --coverage",
"test": "jest"
},
"dependencies": {
"autoprefixer": "^10.4.19",
Expand All @@ -31,7 +33,7 @@
"eslint-plugin-react-refresh": "^0.4.7",
"jest": "^29.7.0",
"terser-brunch": "^4.1.0",
"ts-jest": "^29.2.3",
"ts-jest": "^29.2.4",
"typescript": "^5.5.4",
"vite": "^5.4.0",
"vite-plugin-compression": "^0.5.1"
Expand Down
Binary file modified Caecae/public/assets/audio/racingGamePlayingSound.wav
Binary file not shown.
Loading
Loading