Initial configuration for e2e-factories package

This commit is contained in:
Christopher Allford 2020-06-06 16:44:44 -07:00
parent 0265e027ef
commit 1418b68910
9 changed files with 5528 additions and 599 deletions

1233
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -29,8 +29,11 @@
"@babel/preset-env": "7.9.0",
"@babel/register": "7.9.0",
"@jest/test-sequencer": "^25.0.0",
"@typescript-eslint/eslint-plugin": "3.1.0",
"@typescript-eslint/parser": "3.1.0",
"@woocommerce/e2e-environment": "file:tests/e2e/env",
"@wordpress/e2e-test-utils": "4.3.1",
"@wordpress/eslint-plugin": "6.1.0",
"autoprefixer": "9.7.5",
"babel-eslint": "10.1.0",
"chai": "4.2.0",
@ -62,11 +65,12 @@
"lint-staged": "9.5.0",
"mocha": "7.0.1",
"node-sass": "4.13.0",
"prettier": "github:automattic/calypso-prettier#c56b4251",
"prettier": "npm:wp-prettier@^2.0.5",
"puppeteer": "2.0.0",
"puppeteer-utils": "github:Automattic/puppeteer-utils#0f3ec50",
"stylelint": "12.0.1",
"stylelint-config-wordpress": "16.0.0",
"typescript": "3.9.5",
"webpack": "4.41.6",
"webpack-cli": "3.3.11",
"wp-textdomain": "^1.0.1"
@ -93,6 +97,10 @@
"*.js": [
"eslint --fix",
"git add"
],
"*.ts": [
"eslint --fix",
"git add"
]
},
"browserslist": [

View File

@ -0,0 +1,17 @@
module.exports = {
parser: '@typescript-eslint/parser',
env: {
'jest/globals': true
},
ignorePatterns: [
'dist/',
'node_modules/'
],
rules: {
'no-unused-vars': 'off',
},
extends: [
'plugin:@wordpress/eslint-plugin/recommended',
'plugin:jest/recommended'
],
}

17
tests/e2e/factories/.gitignore vendored Normal file
View File

@ -0,0 +1,17 @@
# Editors
project.xml
project.properties
/nbproject/private/
.buildpath
.project
.settings*
.idea
.vscode
*.sublime-project
*.sublime-workspace
.sublimelinterrc
# Build Artifacts
/node_modules/
/dist/

View File

@ -0,0 +1,4 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
};

4803
tests/e2e/factories/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,30 @@
{
"name": "@woocommerce/e2e-factories",
"version": "0.1.0",
"author": "Automattic",
"description": "Factories for generating test data for use in WooCommerce End-To-End tests.",
"homepage": "https://github.com/woocommerce/woocommerce/tree/master/tests/e2e/factories/README.md",
"repository": {
"type": "git",
"url": "https://github.com/woocommerce/woocommerce.git"
},
"keywords": [
"woocommerce",
"e2e"
],
"license": "GPL-3.0+",
"main": "dist/index.js",
"sideEffects": false,
"scripts": {
"build": "tsc",
"test": "jest"
},
"dependencies": {},
"devDependencies": {
"@types/jest": "25.2.1",
"@types/node": "13.13.5",
"jest": "25.5.4",
"ts-jest": "25.5.0",
"typescript": "3.8.3"
}
}

View File

View File

@ -0,0 +1,13 @@
{
"compilerOptions": {
"incremental": true,
"target": "es2015",
"module": "commonjs",
"types": [ "node", "jest" ],
"outDir": "dist",
"declaration": true,
"strict": true,
"esModuleInterop": true
},
"include": [ "./src/**/*" ]
}