Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infra: update custom-jsdom-env doc and e2e tests #2941

Merged
merged 2 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions e2e/custom-jsdom-env/foo.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
<span *ngIf="condition2">
{{ value2() }}
</span>
<p-inputMask></p-inputMask>
</div>
3 changes: 2 additions & 1 deletion e2e/custom-jsdom-env/foo.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { NgIf } from '@angular/common';
import { Component, input } from '@angular/core';
import { InputMask } from 'primeng/inputmask';

@Component({
selector: 'foo',
Expand All @@ -14,7 +15,7 @@ import { Component, input } from '@angular/core';
}
`,
],
imports: [NgIf],
imports: [NgIf, InputMask],
})
export class FooComponent {
readonly value1 = input('val1');
Expand Down
8 changes: 8 additions & 0 deletions e2e/custom-jsdom-env/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "custom-jsdom-env",
"private": true,
"devDependencies": {
"primeicons": "^7.0.0",
"primeng": "^19.0.5"
}
}
65 changes: 65 additions & 0 deletions e2e/custom-jsdom-env/yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# This file is generated by running "yarn install" inside your project.
# Manual changes might be lost - proceed with caution!

__metadata:
version: 8
cacheKey: 10

"@primeuix/styled@npm:^0.3.2":
version: 0.3.2
resolution: "@primeuix/styled@npm:0.3.2"
dependencies:
"@primeuix/utils": "npm:^0.3.2"
checksum: 10/7febc97eb3aa5c860308b45825e97aef97beb4b9798bc31e6e36839d559ed4a243e1e40bafecdd84b3627ee569c4261608fe295cf953990a2b143f0829f7a78e
languageName: node
linkType: hard

"@primeuix/utils@npm:^0.3.2":
version: 0.3.2
resolution: "@primeuix/utils@npm:0.3.2"
checksum: 10/31df653f2914e188fe8d5c4db24e36721e743d3f41e672d6a7a5fd275f399949f84e18abb4fca230a3f698f9533ec6092f00166256851fd03f32d27884c75459
languageName: node
linkType: hard

"custom-jsdom-env@workspace:.":
version: 0.0.0-use.local
resolution: "custom-jsdom-env@workspace:."
dependencies:
primeicons: "npm:^7.0.0"
primeng: "npm:^19.0.5"
languageName: unknown
linkType: soft

"primeicons@npm:^7.0.0":
version: 7.0.0
resolution: "primeicons@npm:7.0.0"
checksum: 10/ff1d698a4d5932105393cd3288c6b1fd92ad30b6fbce1b49de86bcc1917d74d6769c12061d43aa8657fe52ac79d9336527f0708d8c5a0347a1ddcd3e47d0eb73
languageName: node
linkType: hard

"primeng@npm:^19.0.5":
version: 19.0.5
resolution: "primeng@npm:19.0.5"
dependencies:
"@primeuix/styled": "npm:^0.3.2"
"@primeuix/utils": "npm:^0.3.2"
tslib: "npm:^2.3.0"
peerDependencies:
"@angular/animations": ^19.0.0
"@angular/cdk": ^19.0.0
"@angular/common": ^19.0.0
"@angular/core": ^19.0.0
"@angular/forms": ^19.0.0
"@angular/platform-browser": ^19.0.0
"@angular/router": ^19.0.0
rxjs: ^6.0.0 || ^7.8.1
checksum: 10/6c4a89ecc305de10bea8a751312063cfe29ae70f5a34738d896878628b39393b016505ddab696285c62f5d40795d55f211a0cb502fbbb9a5ce11aaf8b5fc7ea2
languageName: node
linkType: hard

"tslib@npm:^2.3.0":
version: 2.8.1
resolution: "tslib@npm:2.8.1"
checksum: 10/3e2e043d5c2316461cb54e5c7fe02c30ef6dccb3384717ca22ae5c6b5bc95232a6241df19c622d9c73b809bea33b187f6dbc73030963e29950c2141bc32a79f7
languageName: node
linkType: hard
4 changes: 2 additions & 2 deletions website/docs/guides/jsdom-version.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ npm install -D jsdom@<desired-version>
import type { Config } from 'jest';

export default {
testEnvironment: 'jest-preset-angular/environments/jsdom',
testEnvironment: 'jest-preset-angular/environments/jest-jsdom-env',
} satisfies Config;
```

```ts title="jest.config.mts" tab={"label": "TypeScript ESM"}
import type { Config } from 'jest';

export default {
testEnvironment: 'jest-preset-angular/environments/jsdom',
testEnvironment: 'jest-preset-angular/environments/jest-jsdom-env',
} satisfies Config;
```
4 changes: 2 additions & 2 deletions website/versioned_docs/version-14.5/guides/jsdom-version.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ npm install -D jsdom@<desired-version>
import type { Config } from 'jest';

export default {
testEnvironment: 'jest-preset-angular/environments/jsdom',
testEnvironment: 'jest-preset-angular/environments/jest-jsdom-env',
} satisfies Config;
```

```ts title="jest.config.mts" tab={"label": "TypeScript ESM"}
import type { Config } from 'jest';

export default {
testEnvironment: 'jest-preset-angular/environments/jsdom',
testEnvironment: 'jest-preset-angular/environments/jest-jsdom-env',
} satisfies Config;
```
Loading