Skip to content

Commit

Permalink
♻️ (viewer) Change to features-centric folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Nov 15, 2022
1 parent 643571f commit a9d0479
Show file tree
Hide file tree
Showing 80 changed files with 523 additions and 491 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ authenticatedState.json
playwright-report
dist
test-results
test/results
**/src/test/results
**/src/test/reporters
test/report
**/api/scripts
.sentryclirc
Expand Down
1 change: 0 additions & 1 deletion apps/builder/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const config: PlaywrightTestConfig = {
baseURL: process.env.NEXTAUTH_URL,
storageState: path.join(__dirname, 'src/test/storageState.json'),
},
outputDir: path.join(__dirname, 'src/test/results/'),
}

export default config
14 changes: 14 additions & 0 deletions apps/viewer/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,19 @@ module.exports = {
plugins: ['react', '@typescript-eslint'],
rules: {
'react/no-unescaped-entities': [0],
'react/display-name': [0],
'no-restricted-imports': [
'error',
{
patterns: [
'*/src/*',
'src/*',
'*/src',
'@/features/*/*',
'!@/features/blocks/*',
'!@/features/*/api',
],
},
],
},
}
3 changes: 1 addition & 2 deletions apps/viewer/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { playwrightBaseConfig } from 'configs/playwright'

const config: PlaywrightTestConfig = {
...playwrightBaseConfig,
testDir: path.join(__dirname, 'playwright/tests'),
testDir: path.join(__dirname, 'src'),
webServer: process.env.CI
? {
...(playwrightBaseConfig.webServer as { command: string }),
Expand All @@ -15,7 +15,6 @@ const config: PlaywrightTestConfig = {
...playwrightBaseConfig.use,
baseURL: process.env.NEXT_PUBLIC_VIEWER_URL,
},
outputDir: path.join(__dirname, 'playwright/test-results/'),
}

export default config
137 changes: 0 additions & 137 deletions apps/viewer/playwright/tests/api.spec.ts

This file was deleted.

64 changes: 0 additions & 64 deletions apps/viewer/playwright/tests/metadata.spec.ts

This file was deleted.

77 changes: 0 additions & 77 deletions apps/viewer/playwright/tests/webhook.spec.ts

This file was deleted.

Loading

0 comments on commit a9d0479

Please sign in to comment.