Skip to content

Commit

Permalink
chore: updated project structure for alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
CMCDragonkai committed Jun 25, 2023
1 parent 7891215 commit c80ada6
Show file tree
Hide file tree
Showing 15 changed files with 930 additions and 520 deletions.
19 changes: 16 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@
"no-constant-condition": 0,
"no-useless-escape": 0,
"no-console": "error",
"no-restricted-globals": [
"error",
{
"name": "global",
"message": "Use `globalThis` instead"
},
{
"name": "window",
"message": "Use `globalThis` instead"
}
],
"require-yield": 0,
"eqeqeq": ["error", "smart"],
"spaced-comment": [
Expand All @@ -39,7 +50,8 @@
},
"block": {
"exceptions": ["*"]
}
},
"markers": ["/"]
}
],
"capitalized-comments": [
Expand Down Expand Up @@ -80,7 +92,8 @@
],
"pathGroupsExcludedImportTypes": [
"type"
]
],
"newlines-between": "never"
}
],
"@typescript-eslint/no-namespace": 0,
Expand All @@ -102,7 +115,7 @@
"@typescript-eslint/consistent-type-imports": ["error"],
"@typescript-eslint/consistent-type-exports": ["error"],
"no-throw-literal": "off",
"@typescript-eslint/no-throw-literal": ["error"],
"@typescript-eslint/no-throw-literal": "off",
"@typescript-eslint/no-floating-promises": ["error", {
"ignoreVoid": true,
"ignoreIIFE": true
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/codesee-arch-diagram.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# This workflow was added by CodeSee. Learn more at https://codesee.io/
# This is v2.0 of this workflow file
on:
push:
branches:
- master
- staging
pull_request_target:
types: [opened, synchronize, reopened]

Expand All @@ -18,3 +20,4 @@ jobs:
- uses: Codesee-io/codesee-action@v2
with:
codesee-token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}
codesee-url: https://app.codesee.io
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ build:windows:
- ./scripts/choco-install.ps1
- refreshenv
- npm install --ignore-scripts
- $env:Path = "$(npm bin);" + $env:Path
- $env:Path = "$(npm root)\.bin;" + $env:Path
- npm run prebuild --verbose
- npm test -- --ci --coverage
- npm run bench
Expand Down Expand Up @@ -221,7 +221,7 @@ build:macos:
- ./scripts/brew-install.sh
- hash -r
- npm install --ignore-scripts
- export PATH="$(npm bin):$PATH"
- export PATH="$(npm root)/.bin:$PATH"
- npm run prebuild --verbose
- npm test -- --ci --coverage
- npm run bench
Expand Down
22 changes: 19 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,21 @@ module.exports = {
roots: ['<rootDir>/tests'],
testMatch: ['**/?(*.)+(spec|test|unit.test).+(ts|tsx|js|jsx)'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
'^.+\\.jsx?$': 'babel-jest',
"^.+\\.(t|j)sx?$": [
"@swc/jest",
{
jsc: {
parser: {
syntax: "typescript",
tsx: true,
decorators: compilerOptions.experimentalDecorators,
dynamicImport: true,
},
target: compilerOptions.target.toLowerCase(),
keepClassNames: true,
},
}
],
},
reporters: [
'default',
Expand All @@ -60,6 +73,9 @@ module.exports = {
// Setup files after env are executed before each test file
// after the jest test environment is installed
// Can access globals
setupFilesAfterEnv: ['<rootDir>/tests/setupAfterEnv.ts'],
setupFilesAfterEnv: [
'jest-extended/all',
'<rootDir>/tests/setupAfterEnv.ts'
],
moduleNameMapper: moduleNameMapper,
};
Loading

0 comments on commit c80ada6

Please sign in to comment.