Skip to content

Commit

Permalink
test: add framework driver examples (puppeteer) (#62)
Browse files Browse the repository at this point in the history
* test: adding examples usage with different drivers wip

* remove prepare script

* delete husky folder and deps

* fix copilot init

* migrate to new driver

* remove browser setup.

* test(package): add `test:puppeteer` script.

* wip: improve driver

* fix configs

* wip

* ignore examples temp dir

* close browser on finish.

* puppeteer: improve driver launch method docs

* last fixes.

* lint fixes

* remove copilot cache

* ignore copilot cache

* fix tsconfig

---------

Co-authored-by: Asaf Korem <[email protected]>
  • Loading branch information
tzvielwix and asafkorem authored Jan 25, 2025
1 parent 5676c1f commit a3ba516
Show file tree
Hide file tree
Showing 16 changed files with 6,387 additions and 41 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,8 @@ dist
.yarn/install-state.gz
.pnp.*
.dist

# Examples
examples/puppeteer/temp/

**/*/detox_copilot_cache.json
1 change: 0 additions & 1 deletion .husky/pre-push

This file was deleted.

14 changes: 14 additions & 0 deletions examples/puppeteer/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/tests/**/*.test.ts'],
moduleFileExtensions: ['ts', 'js', 'json', 'node'],
moduleDirectories: ['node_modules', '<rootDir>/node_modules'],
transformIgnorePatterns: ['node_modules/(?!examples)'],
moduleNameMapper: {
'^@copilot$': '<rootDir>/../../src',
'^@copilot/(.*)$': '<rootDir>/../../src/$1',
'^@/(.*)$': '<rootDir>/../../src/$1'
}
};
Loading

0 comments on commit a3ba516

Please sign in to comment.