-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: re-org package structure * update deps in next project * lerna change * add back missing components dir * fix tests * fix react tests * fix types * run headless * ignore React type mismatch * build nextjs project alongside other projects * update unit test * fix(react): don't populate non-primitive objects (#498) * chore: re-org package structure * fix(react): don't populate non-primitive objects * test(vue): add playground for Vite+Vue (#499) * test(vue): add playground for Vite+Vue * ignore type issue
- Loading branch information
1 parent
28f3c2f
commit 2c8d1e9
Showing
203 changed files
with
3,727 additions
and
5,762 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"name": "component-library-react", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsc && vite build", | ||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", | ||
"prettier": "pnpm run prettier.base --write", | ||
"prettier.base": "prettier \"./({src,__tests__}/**/*.{ts,tsx,js,jsx})|*.{ts,tsx,js,jsx}\"", | ||
"prettier.dry-run": "pnpm run prettier.base --list-different", | ||
"preview": "vite preview", | ||
"test": "wdio run ./wdio.conf.ts" | ||
}, | ||
"dependencies": { | ||
"@stencil/react-output-target": "workspace:*", | ||
"component-library": "workspace:*", | ||
"react-dom": "^18.3.1" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18", | ||
"@types/react-dom": "^18", | ||
"@types/mocha": "^10.0.9", | ||
"@typescript-eslint/eslint-plugin": "^8.8.1", | ||
"@typescript-eslint/parser": "^8.8.1", | ||
"@vitejs/plugin-react": "^4.3.2", | ||
"@wdio/cli": "^9.1.5", | ||
"@wdio/globals": "^9.1.5", | ||
"@wdio/mocha-framework": "^9.1.3", | ||
"@wdio/spec-reporter": "^9.1.3", | ||
"eslint": "^8.57.0", | ||
"eslint-plugin-react-hooks": "^4.6.2", | ||
"eslint-plugin-react-refresh": "^0.4.12", | ||
"expect-webdriverio": "^5.0.3", | ||
"react": "^18.3.1", | ||
"tsx": "^4.19.1", | ||
"typescript": "^5.6.3", | ||
"vite": "^5.4.8", | ||
"wdio-vite-service": "^1.0.9", | ||
"webdriverio": "^9.1.5" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/// <reference types="webdriverio" /> | ||
import { expect, $, $$, browser } from '@wdio/globals'; | ||
|
||
describe('Stencil NextJS Integration', () => { | ||
before(() => browser.url('/')); | ||
|
||
it('should allow to interact with input element', async () => { | ||
await $('my-input').$('input').setValue('Hello World'); | ||
await expect(await $$('p').map((p) => p.getText())).toEqual([ | ||
'Input Event: Hello World', | ||
'Change Event: Hello World' | ||
]); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.