Skip to content

Commit

Permalink
Rename frameworks to integration
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Nov 4, 2022
1 parent 717df2a commit 11dda25
Show file tree
Hide file tree
Showing 40 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ node_modules/
dist/
CHANGELOG.md
.yarn_home/
src/test/frameworks/
src/test/integration/
src/test/types/
src/tools/types/
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
src/test/frameworks/**/* linguist-documentation
src/test/integration/**/* linguist-documentation
.eslintrc.js linguist-documentation
next.config.js linguist-documentation
src/bin/copy_dsfr_dist_to_public.ts -linguist-detectable
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ node_modules/
/dist/
/CHANGELOG.md
/.yarn_home/
/test/frameworks/
/test/integration/
/src/tools/types/
/dsfr/
/dist_test/
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"scripts": {
"build": "rimraf dist/ && tsc -p src/bin && yarn copy_dsfr_dist_to_root && yarn css_to_ts && tsc -p src && yarn grant_exec_perms",
"test": "vitest",
"start_cra": "yarn yarn_link && cd test/frameworks/cra && yarn start",
"start_next": "yarn yarn_link && cd test/frameworks/next && yarn dev",
"start_vite": "yarn yarn_link && cd test/frameworks/vite && yarn dev",
"start_cra": "yarn yarn_link && cd test/integration/cra && yarn start",
"start_next": "yarn yarn_link && cd test/integration/next && yarn dev",
"start_vite": "yarn yarn_link && cd test/integration/vite && yarn dev",
"lint:check": "eslint . --ext .ts,.tsx",
"lint": "yarn lint:check --fix",
"_format": "prettier '**/*.{ts,tsx,json,md}'",
Expand Down Expand Up @@ -73,6 +73,7 @@
"tsafe": "^1.1.1"
},
"devDependencies": {
"css": "^3.0.0",
"@emotion/react": "^11.10.4",
"@emotion/styled": "^11.10.4",
"@mui/material": "^5.10.7",
Expand Down
2 changes: 1 addition & 1 deletion src/bin/yarn_link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const execYarnLink = (params: { targetModuleName?: string; cwd: string }) => {
const testAppNames = ["cra", "vite", "next"] as const;

const getTestAppPath = (testAppName: typeof testAppNames[number]) =>
pathJoin(projectDirPath, "test", "frameworks", testAppName);
pathJoin(projectDirPath, "test", "integration", testAppName);

testAppNames.forEach(testAppName =>
execSync("yarn install", { "cwd": getTestAppPath(testAppName) })
Expand Down
2 changes: 1 addition & 1 deletion test/frameworks/README.md → test/integration/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Frameworks tests
# integration tests

In this directory we test the integration of the module against mainstream React frameworks.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
"skipLibCheck": true
},
"include": ["../src"],
"exclude": ["./frameworks", "./runtime"]
"exclude": ["./integration", "./runtime"]
}

0 comments on commit 11dda25

Please sign in to comment.