From 54c2539b2a83e54f349f1a15a00ec8eb1450af30 Mon Sep 17 00:00:00 2001
From: Martin Berg Alstad <600878@stud.hvl.no>
Date: Tue, 23 May 2023 22:01:41 +0200
Subject: [PATCH] Added vitest | added dockerfile | wrote some tests
---
.dockerignore | 25 +
.run/All Tests.run.xml | 11 +
global.json | 7 +
pac-man-board-game/ClientApp/.gitignore | 1 +
pac-man-board-game/ClientApp/README.md | 2228 -----------------
.../ClientApp/package-lock.json | 1324 +++++-----
pac-man-board-game/ClientApp/package.json | 10 +-
.../ClientApp/src/components/gameBoard.tsx | 27 +-
pac-man-board-game/ClientApp/src/game/map.ts | 21 +
.../src/game/possibleMovesAlgorithm.ts | 4 +-
.../ClientApp/src/types/types.d.ts | 2 +
.../src/websockets/WebSocketService.ts | 3 +-
.../ClientApp/{src => tests}/App.test.tsx | 3 +-
.../tests/game/possibleMovesAlgorithm.test.ts | 59 +
pac-man-board-game/ClientApp/tsconfig.json | 4 +-
pac-man-board-game/ClientApp/vite.config.ts | 4 +
pac-man-board-game/Dockerfile | 28 +
.../Properties/launchSettings.json | 10 +
pac-man-board-game/pac-man-board-game.csproj | 5 +
19 files changed, 887 insertions(+), 2889 deletions(-)
create mode 100644 .dockerignore
create mode 100644 .run/All Tests.run.xml
create mode 100644 global.json
delete mode 100644 pac-man-board-game/ClientApp/README.md
create mode 100644 pac-man-board-game/ClientApp/src/game/map.ts
rename pac-man-board-game/ClientApp/{src => tests}/App.test.tsx (86%)
create mode 100644 pac-man-board-game/ClientApp/tests/game/possibleMovesAlgorithm.test.ts
create mode 100644 pac-man-board-game/Dockerfile
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..cd967fc
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,25 @@
+**/.dockerignore
+**/.env
+**/.git
+**/.gitignore
+**/.project
+**/.settings
+**/.toolstarget
+**/.vs
+**/.vscode
+**/.idea
+**/*.*proj.user
+**/*.dbmdl
+**/*.jfm
+**/azds.yaml
+**/bin
+**/charts
+**/docker-compose*
+**/Dockerfile*
+**/node_modules
+**/npm-debug.log
+**/obj
+**/secrets.dev.yaml
+**/values.dev.yaml
+LICENSE
+README.md
\ No newline at end of file
diff --git a/.run/All Tests.run.xml b/.run/All Tests.run.xml
new file mode 100644
index 0000000..d5fc497
--- /dev/null
+++ b/.run/All Tests.run.xml
@@ -0,0 +1,11 @@
+
-You can find the most recent version of this guide [here](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md).
-
-## Table of Contents
-
-- [Updating to New Releases](#updating-to-new-releases)
-- [Sending Feedback](#sending-feedback)
-- [Folder Structure](#folder-structure)
-- [Available Scripts](#available-scripts)
- - [npm start](#npm-start)
- - [npm test](#npm-test)
- - [npm run build](#npm-run-build)
- - [npm run eject](#npm-run-eject)
-- [Supported Language Features and Polyfills](#supported-language-features-and-polyfills)
-- [Syntax Highlighting in the Editor](#syntax-highlighting-in-the-editor)
-- [Displaying Lint Output in the Editor](#displaying-lint-output-in-the-editor)
-- [Debugging in the Editor](#debugging-in-the-editor)
-- [Formatting Code Automatically](#formatting-code-automatically)
-- [Changing the Page `