Skip to content

Commit

Permalink
test: add folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabb-c committed May 4, 2024
1 parent 6924a33 commit 13a71ae
Show file tree
Hide file tree
Showing 25 changed files with 8 additions and 106 deletions.
93 changes: 7 additions & 86 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,90 +1,11 @@
# Automatically detect text files and handle line endings appropriately
* text=auto

# DOCUMENTS
*.bibtex text diff=bibtex
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.md text diff=markdown
*.tex text diff=tex
*.adoc text
*.textile text
*.mustache text
*.csv text
*.tab text
*.tsv text
*.txt text eol=lf
*.sql text
*.ps1 text eol=crlf

# CUSTOM
# Use LF as EOL for these files
.editorconfig text eol=lf
.gitignore text eol=lf
*.css text eol=lf
*.df text eol=lf
*.htm text eol=lf
*.html text eol=lf
*.java text eol=lf
*.js text eol=lf
*.json text eol=lf
*.ts text eol=lf
*.jsp text eol=lf
*.jspf text eol=lf
*.properties text eol=lf
*.scss text eol=lf
*.tld text eol=lf
*.ts text eol=lf
*.xml text eol=lf

# GRAPHICS
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
# SVG treated as an asset (binary) by default.
*.svg text
# If you want to treat it as binary,
# use the following line instead.
# *.svg binary
*.eps binary

# SCRIPTS
*.bash text eol=lf
*.fish text eol=lf
*.sh text eol=lf
# These are explicitly windows files and should use CRLF
*.bat text eol=crlf
*.cmd text eol=crlf

# SERIALIZATION
*.json text
*.toml text
*.xml text
*.yaml text
*.yml text

# ARCHIVES
*.7z binary
*.gz binary
*.tar binary
*.tgz binary
*.zip binary
# Ignore the .gitattributes file itself when exporting or archiving the repository
.gitattributes export-ignore

# TEXT FILES WHERE LINE ENDINGS SHOULD BE PRESERVED
*.patch -text
# Ignore the .gitignore file when exporting or archiving the repository
.gitignore export-ignore

# EXCLUDE FILES FROM EXPORTING
.gitattributes export-ignore
.gitignore export-ignore
.gitkeep export-ignore
# Ignore the .gitkeep file when exporting or archiving the repository
.gitkeep export-ignore
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.1/schema.json",
"$schema": "https://biomejs.dev/schemas/1.7.2/schema.json",
"organizeImports": {
"enabled": true
},
Expand Down
1 change: 0 additions & 1 deletion tests/contest/mocks.ts

This file was deleted.

Empty file added tests/contest/mocks/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion tests/encounter/mocks.ts

This file was deleted.

Empty file added tests/encounter/mocks/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion tests/evolution/mocks.ts

This file was deleted.

Empty file added tests/evolution/mocks/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion tests/game/mocks.ts

This file was deleted.

Empty file added tests/game/mocks/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion tests/item/mocks.ts

This file was deleted.

Empty file added tests/item/mocks/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion tests/location/mocks.ts

This file was deleted.

Empty file added tests/location/mocks/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion tests/machine/mocks.ts

This file was deleted.

Empty file added tests/machine/mocks/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion tests/main/mocks.ts

This file was deleted.

Empty file added tests/main/mocks/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion tests/move/mocks.ts

This file was deleted.

Empty file added tests/move/mocks/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion tests/pokemon/mocks.ts

This file was deleted.

Empty file added tests/pokemon/mocks/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion tests/utility/mocks.ts

This file was deleted.

Empty file added tests/utility/mocks/.gitkeep
Empty file.
8 changes: 0 additions & 8 deletions tests/utils/base-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ type PokeApiListRequestParams = {
*
* It constructs a GET request handler for the specified endpoint and response data,
* optionally including a dynamic path segment for flexibility.
*
* @param {Endpoint} endpoint - The endpoint to mock, as a string.
* @param {R} mockResponse - The response data to return for the mocked request.
* @param {string} [identifier] - An optional identifier to append to the endpoint path.
* @template P - The expected path parameters type, defaulting to PokeApiListRequestParams.
* @template B - The expected request body type, defaulting to DefaultBodyType.
* @template R - The expected response body type, defaulting to DefaultBodyType.
* @returns {HttpHandler} The mocked response object.
*/
export const baseHandler = <
P extends PathParams<keyof P> = PokeApiListRequestParams,
Expand Down

0 comments on commit 13a71ae

Please sign in to comment.