-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from miku0129/development
Add authentication and test.
- Loading branch information
Showing
39 changed files
with
9,279 additions
and
9,554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VITE_HANKO_API_URL_LOCAL= |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,6 @@ dist-ssr | |
*.sln | ||
*.sw? | ||
|
||
sample-student-data.ts | ||
sample-student-data.ts | ||
.env | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
interface FormContent { | ||
id:number; | ||
name: string; | ||
email: string; | ||
fromWhen?: string; | ||
myGoal?: string; | ||
myMethod?: string; | ||
} | ||
|
||
interface showForm { | ||
bool: boolean | ||
} | ||
|
||
interface isEditVal { | ||
bool: boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
// Only used by Jest | ||
module.exports = { | ||
env: { | ||
test: { | ||
presets: [ | ||
["@babel/preset-env", { targets: { node: "current" } }], | ||
"@babel/preset-typescript", | ||
], | ||
}, | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ useBuiltIns: 'entry', corejs: '2', targets: { node: 'current' } }, | ||
], | ||
'@babel/preset-typescript', | ||
], | ||
plugins: [ | ||
function () { | ||
return { | ||
visitor: { | ||
MetaProperty(path) { | ||
path.replaceWithSourceString('process') | ||
}, | ||
}, | ||
} | ||
}, | ||
}; | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
module.exports = { | ||
moduleFileExtensions: ["vue", "js", "ts", "tsx" ], | ||
moduleNameMapper: { | ||
"\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": | ||
"<rootDir>/__mocks__/fileMock.js", | ||
}, | ||
preset: "ts-jest", | ||
testEnvironment: "jest-environment-jsdom", | ||
testEnvironmentOptions: { | ||
customExportConditions: ["node", "node-addons"], | ||
}, | ||
transform: { | ||
"^.+\\.(t|j)s?$": "babel-jest", | ||
"^.+\\.vue$": "@vue/vue3-jest", | ||
}, | ||
setupFilesAfterEnv: ['./tests/router-mock-setup.js'], | ||
}; | ||
|
||
moduleFileExtensions: ["vue", "js", "ts", "tsx"], | ||
moduleNameMapper: { | ||
"\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": | ||
"<rootDir>/__mocks__/fileMock.js", | ||
}, | ||
preset: "ts-jest", | ||
testEnvironment: "jest-environment-jsdom", | ||
testEnvironmentOptions: { | ||
customExportConditions: ["node", "node-addons"], | ||
}, | ||
transform: { | ||
"^.+\\.(t|j)s?$": "babel-jest", | ||
"^.+\\.vue$": "@vue/vue3-jest", | ||
}, | ||
setupFilesAfterEnv: ["./tests/router-mock-setup.js"], | ||
transformIgnorePatterns: ["<rootDir>/node_modules/(?!@teamhanko)"], | ||
collectCoverageFrom: ["**/*.{ts,vue}", "!**/node_modules/**"], | ||
}; |
Oops, something went wrong.