Skip to content

Commit 21148f7

Browse files
authored
Merge pull request #16 from alexdln/nc-15
nc-15 update auto-tests workflow
2 parents 35a7667 + c2f46e0 commit 21148f7

File tree

5 files changed

+5
-18
lines changed

5 files changed

+5
-18
lines changed

.github/workflows/auto-tests.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,11 @@ jobs:
2323

2424
- name: Install dependencies and build package
2525
run: |
26-
pnpm install
26+
pnpm --filter @nimpl/context --filter tests-base add react@canary react-dom@canary next@canary --no-lockfile
27+
pnpm --filter @nimpl/context --filter tests-base add @types/react@latest @types/react-dom@latest --save-dev --no-lockfile
2728
pnpm run build
2829
working-directory: ./package
2930

30-
# Step to make sure we will install the latest Canary versions
31-
- name: Remove pnpm data
32-
run: |
33-
rm -rf node_modules
34-
rm -rf package/node_modules
35-
rm -rf tests/base/node_modules
36-
rm -rf pnpm-lock.yaml
37-
38-
- name: Install test dependencies
39-
run: |
40-
pnpm install --ignore-workspace
41-
working-directory: ./tests/base
42-
4331
- name: Test package general
4432
run: |
4533
pnpm playwright install

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
"prettier": "3.7.4",
2727
"typescript-eslint": "8.48.1"
2828
},
29-
"license": "MIC",
30-
"packageManager": "pnpm@9.7.0+sha512.dc09430156b427f5ecfc79888899e1c39d2d690f004be70e05230b72cb173d96839587545d09429b55ac3c429c801b4dc3c0e002f653830a420fa2dd4e3cf9cf"
29+
"license": "MIT",
30+
"packageManager": "pnpm@10.8.0+sha512.0e82714d1b5b43c74610193cb20734897c1d00de89d0e18420aebc5977fa13d780a9cb05734624e81ebd81cc876cd464794850641c48b9544326b5622ca29971"
3131
}

tests/base/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
# testing
1010
/coverage
11+
/test-results
1112

1213
# next.js
1314
/.next/

tests/base/components/text-after-context-with-delay.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ interface TextAfterContextWithDelayProps {
1010
export const TextAfterContextWithDelay: React.FC<TextAfterContextWithDelayProps> = async ({ id }) => {
1111
await sleep(1000);
1212
const context = getServerContext(AfterContext);
13-
console.log("TextAfterContextWithDelay", context);
1413

1514
return <p id={id}>{context?.after}</p>;
1615
};

tests/base/components/text-initialized-context.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ interface TextUninitializedContextProps {
88

99
export const TextUninitializedContext: React.FC<TextUninitializedContextProps> = async ({ id }) => {
1010
const context = getServerContext(UninitializedContext);
11-
console.log("TextUninitializedContext", context);
1211

1312
return <p id={id}>{context?.uninitialized}</p>;
1413
};

0 commit comments

Comments
 (0)