mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-06 15:00:50 -05:00
chore: update eslint from version 7 to version 8 (#29355)
* chore: (for eslint-plugin-dev only is breaking) update eslint-plugin dev minimum to eslint 7. Remove support for coffeescript and reconfigured required peer deps * correctly configure eslint-plugin-json-format for the monorepo and run linting on all json files (previously was not running) * properly support no duplicate imports
This commit is contained in:
+5
-4
@@ -59,13 +59,14 @@ module.exports = {
|
||||
'no-restricted-syntax': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['*.json'],
|
||||
extends: 'plugin:@cypress/dev/general',
|
||||
},
|
||||
],
|
||||
rules: {
|
||||
'no-duplicate-imports': 'off',
|
||||
'import/no-duplicates': 'off',
|
||||
'@typescript-eslint/no-duplicate-imports': [
|
||||
'error',
|
||||
],
|
||||
'import/no-duplicates': 'error',
|
||||
'prefer-spread': 'off',
|
||||
'prefer-rest-params': 'off',
|
||||
'no-useless-constructor': 'off',
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
"scripts": {
|
||||
"build": "tsc -p tsconfig.json",
|
||||
"build:watch": "tsc -p tsconfig.json --watch",
|
||||
"test": "mocha -r @packages/ts/register --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json src/**/*.spec.ts",
|
||||
"lint": "eslint --ext .ts,.json, ."
|
||||
"lint": "eslint --ext .ts,.json, .",
|
||||
"test": "mocha -r @packages/ts/register --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json src/**/*.spec.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"jsonc-parser": "^3.0.0",
|
||||
|
||||
@@ -25,7 +25,7 @@ export type JSONPath = (string | number)[];
|
||||
|
||||
/** @internal */
|
||||
export class JSONFile {
|
||||
content: string;
|
||||
content: string
|
||||
|
||||
constructor (private readonly host: Tree, private readonly path: string) {
|
||||
const buffer = this.host.read(this.path)
|
||||
@@ -37,7 +37,7 @@ export class JSONFile {
|
||||
}
|
||||
}
|
||||
|
||||
private _jsonAst: Node | undefined;
|
||||
private _jsonAst: Node | undefined
|
||||
private get JsonAst (): Node | undefined {
|
||||
if (this._jsonAst) {
|
||||
return this._jsonAst
|
||||
|
||||
@@ -20,7 +20,11 @@ npm install --save-dev @cypress/eslint-plugin-dev
|
||||
|
||||
## Usage
|
||||
|
||||
> ⚠️ Currently does **not** support ESLint version 8+
|
||||
> ⚠️ Currently does **not** support ESLint version 9
|
||||
|
||||
For Eslint 8, use version 6.x.x
|
||||
|
||||
For Eslint 7 and below, use version 5.x.x
|
||||
|
||||
1) install the following `devDependencies`:
|
||||
```sh
|
||||
@@ -30,13 +34,9 @@ eslint-plugin-json-format
|
||||
@typescript-eslint/eslint-plugin
|
||||
eslint-plugin-mocha
|
||||
|
||||
# if you have coffeescript files
|
||||
@fellow/eslint-plugin-coffee
|
||||
babel-eslint
|
||||
|
||||
# if you have react/jsx files
|
||||
eslint-plugin-react
|
||||
babel-eslint
|
||||
@babel/eslint-parser
|
||||
```
|
||||
|
||||
2) add the following to your root level `.eslintrc.json`:
|
||||
@@ -114,7 +114,7 @@ React and JSX-specific configuration and rules.
|
||||
|
||||
**requires you to install the following `devDependencies`**:
|
||||
```sh
|
||||
babel-eslint
|
||||
@babel/eslint-parser
|
||||
eslint-plugin-react
|
||||
```
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const ruleComposer = require('eslint-rule-composer')
|
||||
const arrowBodyStyle = require('eslint/lib/rules/arrow-body-style')
|
||||
const eslint = require('eslint')
|
||||
const arrowBodyStyle = new eslint.Linter().getRules().get('arrow-body-style')
|
||||
|
||||
module.exports = ruleComposer.filterReports(
|
||||
arrowBodyStyle,
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
let astUtils
|
||||
|
||||
try {
|
||||
astUtils = require('eslint/lib/util/ast-utils')
|
||||
} catch (e) {
|
||||
astUtils = require('eslint/lib/shared/ast-utils')
|
||||
}
|
||||
// @see https://github.com/eslint/eslint/blob/v8.57.0/lib/shared/ast-utils.js#L12
|
||||
// This value is not exported anywhere, but hasn't changed in almost a decade.
|
||||
// we can directly reference the pattern here
|
||||
const lineBreakPattern = /\r\n|[\r\n\u2028\u2029]/u
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
@@ -25,7 +22,7 @@ module.exports = {
|
||||
const sourceCode = context.getSourceCode()
|
||||
|
||||
function getPropertyText (node) {
|
||||
const lines = sourceCode.getText(node).split(astUtils.LINEBREAK_MATCHER)
|
||||
const lines = sourceCode.getText(node).split(lineBreakPattern)
|
||||
|
||||
return lines[0]
|
||||
}
|
||||
|
||||
@@ -238,25 +238,6 @@ module.exports = {
|
||||
'@cypress/dev/arrow-body-multiline-braces': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
files: '*.coffee',
|
||||
parser: '@fellow/eslint-plugin-coffee',
|
||||
parserOptions: {
|
||||
parser: 'babel-eslint',
|
||||
sourceType: 'module',
|
||||
ecmaVersion: 2018,
|
||||
},
|
||||
plugins: [
|
||||
'@fellow/eslint-plugin-coffee',
|
||||
],
|
||||
rules: {
|
||||
...Object.assign({}, ...Object.keys(baseRules).map((key) => ({ [key]: 'off' }))),
|
||||
'@fellow/coffee/coffeescript-error': [
|
||||
'error',
|
||||
{},
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
files: [
|
||||
'*.ts',
|
||||
@@ -266,6 +247,7 @@ module.exports = {
|
||||
parser: '@typescript-eslint/parser',
|
||||
plugins: [
|
||||
'@typescript-eslint',
|
||||
'import',
|
||||
],
|
||||
rules: {
|
||||
'no-undef': 'off',
|
||||
@@ -273,10 +255,7 @@ module.exports = {
|
||||
'indent': 'off',
|
||||
'no-useless-constructor': 'off',
|
||||
'no-duplicate-imports': 'off',
|
||||
'import/no-duplicates': 'off',
|
||||
'@typescript-eslint/no-duplicate-imports': [
|
||||
'error',
|
||||
],
|
||||
'import/no-duplicates': 'error',
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'error',
|
||||
{
|
||||
@@ -344,10 +323,11 @@ module.exports = {
|
||||
env: {
|
||||
browser: true,
|
||||
},
|
||||
parser: 'babel-eslint',
|
||||
parser: '@babel/eslint-parser',
|
||||
parserOptions: {
|
||||
ecmaVersion: 2018,
|
||||
sourceType: 'module',
|
||||
requireConfigFile: false,
|
||||
ecmaFeatures: {
|
||||
jsx: true,
|
||||
legacyDecorators: true,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const path = require('path')
|
||||
const _ = require('lodash')
|
||||
const EE = require('events')
|
||||
const sh = require('shelljs')
|
||||
@@ -75,12 +76,13 @@ module.exports = {
|
||||
const filenamesString = sh.ShellString(filenames.join(' '))
|
||||
|
||||
const lintCommand = opts.fix ?
|
||||
`./node_modules/.bin/eslint --color=true --fix '' ${filenamesString}`
|
||||
: `./node_modules/.bin/eslint --color=true '' ${filenamesString}`
|
||||
`npx eslint --color=true --fix ${filenamesString}`
|
||||
: `npx eslint --color=true ${filenamesString}`
|
||||
|
||||
// always run command in the root of the monorepo!
|
||||
return Promise.promisify(sh.exec)(
|
||||
lintCommand,
|
||||
{ silent: false, async: true },
|
||||
{ silent: false, async: true, cwd: path.resolve(__dirname, '../../../../') },
|
||||
)
|
||||
.tapCatch(debugTerse)
|
||||
.return(false)
|
||||
|
||||
@@ -17,21 +17,23 @@
|
||||
"shelljs": "0.8.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^7.22.0",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"eslint-plugin-json-format": "^2.0.0",
|
||||
"eslint-plugin-mocha": "^8.1.0",
|
||||
"eslint-plugin-mocha": "^8.2.0",
|
||||
"eslint-plugin-promise": "^4.2.1",
|
||||
"sinon": "^7.3.2",
|
||||
"sinon-chai": "^3.3.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": ">= 1.11.0",
|
||||
"@typescript-eslint/parser": ">= 1.11.0",
|
||||
"babel-eslint": "^7.2.3",
|
||||
"eslint": ">= 3.2.1",
|
||||
"@babel/eslint-parser": "^7.0.0",
|
||||
"@typescript-eslint/eslint-plugin": ">= 7.0.0",
|
||||
"@typescript-eslint/parser": ">= 7.0.0",
|
||||
"eslint": "^= 8.0.0",
|
||||
"eslint-plugin-import": ">= 2.0.0",
|
||||
"eslint-plugin-json-format": ">= 2.0.0",
|
||||
"eslint-plugin-mocha": " >= 4.11.0",
|
||||
"eslint-plugin-react": "^7.22.0"
|
||||
"eslint-plugin-mocha": " >= 8.0.0",
|
||||
"eslint-plugin-react": ">= 7.22.0"
|
||||
},
|
||||
"bin": {
|
||||
"lint-changed": "./lib/scripts/lint-changed.js",
|
||||
@@ -51,4 +53,4 @@
|
||||
"eslint",
|
||||
"eslintplugin"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,47 +1,44 @@
|
||||
const path = require('path')
|
||||
const CLIEngine = require('eslint').CLIEngine
|
||||
const plugin = require('..')
|
||||
const eslint = require('eslint')
|
||||
const plugin = require('../lib')
|
||||
const _ = require('lodash')
|
||||
const { expect } = require('chai')
|
||||
|
||||
const pluginName = '__plugin__'
|
||||
const ESLint = eslint.ESLint
|
||||
|
||||
function execute (file, options = {}) {
|
||||
const opts = _.defaultsDeep(options, {
|
||||
async function execute (file, options = {}) {
|
||||
const defaultConfig = {
|
||||
fix: true,
|
||||
config: {
|
||||
ignore: false,
|
||||
useEslintrc: false,
|
||||
baseConfig: {
|
||||
parserOptions: {
|
||||
ecmaVersion: 2018,
|
||||
sourceType: 'module',
|
||||
},
|
||||
rules: {
|
||||
[`${pluginName}/arrow-body-multiline-braces`]: ['error', 'always'],
|
||||
},
|
||||
plugins: [pluginName],
|
||||
},
|
||||
|
||||
})
|
||||
|
||||
const cli = new CLIEngine({
|
||||
parserOptions: {
|
||||
ecmaVersion: 2018,
|
||||
sourceType: 'module',
|
||||
plugins: {
|
||||
[pluginName]: plugin,
|
||||
},
|
||||
rules: {
|
||||
[`${pluginName}/arrow-body-multiline-braces`]: ['error', 'always'],
|
||||
},
|
||||
...opts,
|
||||
ignore: false,
|
||||
useEslintrc: false,
|
||||
plugins: [pluginName],
|
||||
})
|
||||
}
|
||||
const opts = _.defaultsDeep(options, defaultConfig)
|
||||
|
||||
cli.addPlugin(pluginName, plugin)
|
||||
const results = cli.executeOnFiles([path.join(__dirname, file)]).results[0]
|
||||
const cli = new ESLint(opts)
|
||||
|
||||
return results
|
||||
const results = await cli.lintFiles([path.join(__dirname, file)])
|
||||
|
||||
return results[0]
|
||||
}
|
||||
|
||||
describe('arrow-body-multiline-braces', () => {
|
||||
it('lint multiline js', async () => {
|
||||
const filename = './fixtures/multiline.js'
|
||||
const result = execute(filename, {
|
||||
const result = await execute(filename, {
|
||||
fix: true,
|
||||
})
|
||||
|
||||
@@ -50,7 +47,7 @@ describe('arrow-body-multiline-braces', () => {
|
||||
|
||||
it('lint oneline js', async () => {
|
||||
const filename = './fixtures/oneline.js'
|
||||
const result = execute(filename, { fix: false })
|
||||
const result = await execute(filename, { fix: false })
|
||||
|
||||
expect(result.output).not.ok
|
||||
expect(result.errorCount).eq(0)
|
||||
|
||||
@@ -1,47 +1,45 @@
|
||||
const path = require('path')
|
||||
const CLIEngine = require('eslint').CLIEngine
|
||||
const eslint = require('eslint')
|
||||
const plugin = require('..')
|
||||
const _ = require('lodash')
|
||||
const { expect } = require('chai')
|
||||
|
||||
const ruleName = 'no-only'
|
||||
const pluginName = '__plugin__'
|
||||
const ESLint = eslint.ESLint
|
||||
|
||||
function execute (file, options = {}) {
|
||||
const opts = _.defaultsDeep(options, {
|
||||
async function execute (file, options = {}) {
|
||||
const defaultConfig = {
|
||||
fix: true,
|
||||
config: {
|
||||
ignore: false,
|
||||
useEslintrc: false,
|
||||
baseConfig: {
|
||||
parserOptions: {
|
||||
ecmaVersion: 2018,
|
||||
sourceType: 'module',
|
||||
},
|
||||
rules: {
|
||||
[`${pluginName}/${ruleName}`]: ['error'],
|
||||
},
|
||||
plugins: [pluginName],
|
||||
},
|
||||
})
|
||||
|
||||
const cli = new CLIEngine({
|
||||
parserOptions: {
|
||||
ecmaVersion: 2018,
|
||||
sourceType: 'module',
|
||||
plugins: {
|
||||
[pluginName]: plugin,
|
||||
},
|
||||
rules: {
|
||||
[`${pluginName}/${ruleName}`]: ['error'],
|
||||
},
|
||||
...opts,
|
||||
ignore: false,
|
||||
useEslintrc: false,
|
||||
plugins: [pluginName],
|
||||
})
|
||||
}
|
||||
const opts = _.defaultsDeep(options, defaultConfig)
|
||||
|
||||
cli.addPlugin(pluginName, plugin)
|
||||
const results = cli.executeOnFiles([path.join(__dirname, file)]).results[0]
|
||||
const cli = new ESLint(opts)
|
||||
|
||||
return results
|
||||
const results = await cli.lintFiles([path.join(__dirname, file)])
|
||||
|
||||
return results[0]
|
||||
}
|
||||
|
||||
describe('no-only', () => {
|
||||
it('lint js with only', async () => {
|
||||
const filename = './fixtures/with-only.js'
|
||||
const result = execute(filename, {
|
||||
const result = await execute(filename, {
|
||||
fix: true,
|
||||
})
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const path = require('path')
|
||||
const CLIEngine = require('eslint').CLIEngine
|
||||
const eslint = require('eslint')
|
||||
const plugin = require('..')
|
||||
const _ = require('lodash')
|
||||
const { stripIndent } = require('common-tags')
|
||||
@@ -7,50 +7,47 @@ const { expect } = require('chai')
|
||||
|
||||
const ruleName = 'no-return-before'
|
||||
const pluginName = '__plugin__'
|
||||
const ESLint = eslint.ESLint
|
||||
|
||||
function execute (file, options = {}) {
|
||||
const opts = _.defaultsDeep(options, {
|
||||
async function execute (file, options = {}) {
|
||||
const defaultConfig = {
|
||||
fix: true,
|
||||
config: {
|
||||
ignore: false,
|
||||
useEslintrc: false,
|
||||
baseConfig: {
|
||||
parserOptions: {
|
||||
ecmaVersion: 2018,
|
||||
sourceType: 'module',
|
||||
},
|
||||
rules: {
|
||||
[`${pluginName}/${ruleName}`]: ['error'],
|
||||
},
|
||||
plugins: [pluginName],
|
||||
},
|
||||
})
|
||||
|
||||
const cli = new CLIEngine({
|
||||
parserOptions: {
|
||||
ecmaVersion: 2018,
|
||||
sourceType: 'module',
|
||||
plugins: {
|
||||
[pluginName]: plugin,
|
||||
},
|
||||
rules: {
|
||||
[`${pluginName}/${ruleName}`]: ['error'],
|
||||
},
|
||||
...opts,
|
||||
ignore: false,
|
||||
useEslintrc: false,
|
||||
plugins: [pluginName],
|
||||
}
|
||||
const opts = _.defaultsDeep(options, defaultConfig)
|
||||
|
||||
})
|
||||
const cli = new ESLint(opts)
|
||||
|
||||
cli.addPlugin(pluginName, plugin)
|
||||
const results = cli.executeOnFiles([path.join(__dirname, file)]).results[0]
|
||||
const results = await cli.lintFiles([path.join(__dirname, file)])
|
||||
|
||||
return results
|
||||
return results[0]
|
||||
}
|
||||
|
||||
describe(ruleName, () => {
|
||||
it('pass', async () => {
|
||||
const filename = './fixtures/no-return-before-pass.js'
|
||||
const result = execute(filename)
|
||||
const result = await execute(filename)
|
||||
|
||||
expect(result.errorCount).equal(0)
|
||||
})
|
||||
|
||||
it('fail', async () => {
|
||||
const filename = './fixtures/no-return-before-fail.js'
|
||||
const result = execute(filename, {
|
||||
const result = await execute(filename, {
|
||||
fix: false,
|
||||
})
|
||||
|
||||
@@ -60,7 +57,7 @@ describe(ruleName, () => {
|
||||
|
||||
it('fix fail', async () => {
|
||||
const filename = './fixtures/no-return-before-fail.js'
|
||||
const result = execute(filename)
|
||||
const result = await execute(filename)
|
||||
|
||||
expect(result.output).equal(`${stripIndent`
|
||||
describe('outer', ()=>{
|
||||
@@ -79,14 +76,16 @@ describe(ruleName, () => {
|
||||
describe('config', () => {
|
||||
it('config [tokens]', async () => {
|
||||
const filename = './fixtures/no-return-before-fail.js'
|
||||
const result = execute(filename, {
|
||||
const result = await execute(filename, {
|
||||
fix: false,
|
||||
rules: {
|
||||
[`${pluginName}/${ruleName}`]: [
|
||||
'error', {
|
||||
tokens: ['someFn'],
|
||||
},
|
||||
],
|
||||
baseConfig: {
|
||||
rules: {
|
||||
[`${pluginName}/${ruleName}`]: [
|
||||
'error', {
|
||||
tokens: ['someFn'],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
@@ -1,47 +1,45 @@
|
||||
const path = require('path')
|
||||
const CLIEngine = require('eslint').CLIEngine
|
||||
const eslint = require('eslint')
|
||||
const plugin = require('..')
|
||||
const _ = require('lodash')
|
||||
const { expect } = require('chai')
|
||||
|
||||
const ruleName = 'skip-comment'
|
||||
const pluginName = '__plugin__'
|
||||
const ESLint = eslint.ESLint
|
||||
|
||||
function execute (file, options = {}) {
|
||||
const opts = _.defaultsDeep(options, {
|
||||
async function execute (file, options = {}) {
|
||||
const defaultConfig = {
|
||||
fix: true,
|
||||
config: {
|
||||
ignore: false,
|
||||
useEslintrc: false,
|
||||
baseConfig: {
|
||||
parserOptions: {
|
||||
ecmaVersion: 2018,
|
||||
sourceType: 'module',
|
||||
},
|
||||
rules: {
|
||||
[`${pluginName}/${ruleName}`]: ['error'],
|
||||
},
|
||||
plugins: [pluginName],
|
||||
},
|
||||
})
|
||||
|
||||
const cli = new CLIEngine({
|
||||
parserOptions: {
|
||||
ecmaVersion: 2018,
|
||||
sourceType: 'module',
|
||||
plugins: {
|
||||
[pluginName]: plugin,
|
||||
},
|
||||
rules: {
|
||||
[`${pluginName}/${ruleName}`]: ['error'],
|
||||
},
|
||||
...opts,
|
||||
ignore: false,
|
||||
useEslintrc: false,
|
||||
plugins: [pluginName],
|
||||
})
|
||||
}
|
||||
const opts = _.defaultsDeep(options, defaultConfig)
|
||||
|
||||
cli.addPlugin(pluginName, plugin)
|
||||
const results = cli.executeOnFiles([path.join(__dirname, file)]).results[0]
|
||||
const cli = new ESLint(opts)
|
||||
|
||||
return results
|
||||
const results = await cli.lintFiles([path.join(__dirname, file)])
|
||||
|
||||
return results[0]
|
||||
}
|
||||
|
||||
describe('skip-comment', () => {
|
||||
it('skip test with comment', async () => {
|
||||
const filename = './fixtures/skip-comment-pass.js'
|
||||
const result = execute(filename, {
|
||||
const result = await execute(filename, {
|
||||
fix: true,
|
||||
})
|
||||
|
||||
@@ -50,7 +48,7 @@ describe('skip-comment', () => {
|
||||
|
||||
it('skip test without comment', async () => {
|
||||
const filename = './fixtures/skip-comment-fail.js'
|
||||
const result = execute(filename, {
|
||||
const result = await execute(filename, {
|
||||
fix: true,
|
||||
})
|
||||
|
||||
@@ -70,14 +68,16 @@ describe('skip-comment', () => {
|
||||
describe('config', () => {
|
||||
it('skip test without comment', async () => {
|
||||
const filename = './fixtures/skip-comment-config.js'
|
||||
const result = execute(filename, {
|
||||
const result = await execute(filename, {
|
||||
fix: true,
|
||||
rules: {
|
||||
[`${pluginName}/${ruleName}`]: [
|
||||
'error', {
|
||||
commentTokens: ['FOOBAR:'],
|
||||
},
|
||||
],
|
||||
baseConfig: {
|
||||
rules: {
|
||||
[`${pluginName}/${ruleName}`]: [
|
||||
'error', {
|
||||
commentTokens: ['FOOBAR:'],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
"build": "tsc || echo 'built, with type errors'",
|
||||
"postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
|
||||
"check-ts": "tsc --noEmit",
|
||||
"watch": "tsc -w",
|
||||
"lint": "eslint --ext .js,.ts,.json, ."
|
||||
"lint": "eslint --ext .js,.ts,.json, .",
|
||||
"watch": "tsc -w"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"private": false,
|
||||
"main": "dist/plugin/index.js",
|
||||
"scripts": {
|
||||
"build-prod": "yarn build",
|
||||
"build": "rimraf dist && tsc || echo 'built, with errors'",
|
||||
"build-prod": "yarn build",
|
||||
"check-ts": "tsc --noEmit",
|
||||
"cypress:open": "node ../../scripts/cypress.js open",
|
||||
"cypress:run": "node ../../scripts/cypress.js run --browser chrome",
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
"cy:open:debug": "node --inspect-brk ../../scripts/start.js --component-testing --run-project ${PWD}",
|
||||
"cy:run": "node ../../scripts/cypress.js run --component",
|
||||
"cy:run:debug": "node --inspect-brk ../../scripts/start.js --component-testing --run-project ${PWD}",
|
||||
"test": "yarn cy:run",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"test": "yarn cy:run",
|
||||
"watch": "yarn build --watch --watch.exclude ./dist/**/*"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
"build": "rimraf dist && rollup -c rollup.config.mjs",
|
||||
"postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
|
||||
"check-ts": "tsc --noEmit",
|
||||
"watch": "yarn build --watch --watch.exclude ./dist/**/*",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"watch": "yarn build --watch --watch.exclude ./dist/**/*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cypress/mount-utils": "0.0.0-development",
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
"prebuild": "rimraf dist",
|
||||
"build": "rollup -c rollup.config.mjs",
|
||||
"postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"check-ts": "tsc --noEmit"
|
||||
"check-ts": "tsc --noEmit",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cypress/mount-utils": "0.0.0-development",
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
"scripts": {
|
||||
"build": "tsc || echo 'built, with type errors'",
|
||||
"check-ts": "tsc --noEmit",
|
||||
"cypress:open": "yarn cypress:run-cypress-in-cypress gulp open --project .",
|
||||
"cypress:run": "yarn cypress:run-cypress-in-cypress node ../../scripts/cypress run --project . --browser chrome",
|
||||
"cypress:run-cypress-in-cypress": "cross-env CYPRESS_INTERNAL_E2E_TESTING_SELF_PARENT_PROJECT=1 HTTP_PROXY_TARGET_FOR_ORIGIN_REQUESTS=http://localhost:4455 CYPRESS_REMOTE_DEBUGGING_PORT=6666 TZ=America/New_York",
|
||||
"cypress:open": "yarn cypress:run-cypress-in-cypress gulp open --project .",
|
||||
"watch": "tsc -w",
|
||||
"lint": "eslint --ext .js,.ts,.json, .",
|
||||
"test": "yarn test-unit",
|
||||
"test-unit": "mocha -r ts-node/register/transpile-only --config ./test/.mocharc.js",
|
||||
"lint": "eslint --ext .js,.ts,.json, ."
|
||||
"watch": "tsc -w"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": "^4.3.4",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/// <reference types="cypress" />
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-duplicate-imports */
|
||||
/* eslint-disable import/no-duplicates */
|
||||
import defaultExport1 from './fixtures/kitchenSink'
|
||||
import * as name1 from './fixtures/kitchenSink'
|
||||
import { export1 } from './fixtures/kitchenSink'
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
"check-ts": "tsc --noEmit",
|
||||
"cypress:open": "node ../../scripts/cypress open --project . --component",
|
||||
"cypress:run": "node ../../scripts/cypress run --project . --component",
|
||||
"lint": "eslint --ext .js,.ts,.json, .",
|
||||
"test": "npm run cypress:run",
|
||||
"watch": "tsc -w",
|
||||
"lint": "eslint --ext .js,.ts,.json, ."
|
||||
"watch": "tsc -w"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": "^4.3.4",
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
"description": "Browser-based Component Testing for Vue.js with Cypress.io ✌️🌲",
|
||||
"main": "dist/cypress-vue.cjs.js",
|
||||
"scripts": {
|
||||
"cy:open": "node ../../scripts/cypress.js open --component --project ${PWD}",
|
||||
"cy:run": "node ../../scripts/cypress.js run --component --project ${PWD}",
|
||||
"build": "rimraf dist && rollup -c rollup.config.mjs",
|
||||
"postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
|
||||
"check-ts": "yarn tsd && vue-tsc --noEmit",
|
||||
"cy:open": "node ../../scripts/cypress.js open --component --project ${PWD}",
|
||||
"cy:run": "node ../../scripts/cypress.js run --component --project ${PWD}",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json,.vue .",
|
||||
"test": "yarn cy:run",
|
||||
"tsd": "yarn build && yarn tsc -p test-tsd/tsconfig.tsd.json",
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
"description": "Browser-based Component Testing for Vue.js@2 with Cypress.io ✌️🌲",
|
||||
"main": "dist/cypress-vue2.cjs.js",
|
||||
"scripts": {
|
||||
"check-ts": "tsc --noEmit",
|
||||
"build": "rimraf dist && yarn rollup -c rollup.config.mjs",
|
||||
"postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
|
||||
"test": "echo \"Tests for @cypress/vue2 are run from system-tests\"",
|
||||
"watch": "yarn build --watch --watch.exclude ./dist/**/*",
|
||||
"check-ts": "tsc --noEmit",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json,.vue .",
|
||||
"test-ci": "node ../../scripts/run-ct-examples.js --examplesList=./examples.env"
|
||||
"test": "echo \"Tests for @cypress/vue2 are run from system-tests\"",
|
||||
"test-ci": "node ../../scripts/run-ct-examples.js --examplesList=./examples.env",
|
||||
"watch": "yarn build --watch --watch.exclude ./dist/**/*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cypress/mount-utils": "0.0.0-development",
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"__description__": "This is here to prove that babel.config.json does not get used by babel-loader. It's not used for the compilation of this project.",
|
||||
"plugins": [
|
||||
"doesnt-exist"
|
||||
]
|
||||
}
|
||||
@@ -4,8 +4,8 @@
|
||||
"description": "Cypress preprocessor for bundling JavaScript via webpack with dependencies included and support for various ES features, TypeScript, and CoffeeScript",
|
||||
"private": false,
|
||||
"scripts": {
|
||||
"test": "mocha test/**/*.spec.* --timeout 4000",
|
||||
"lint": "eslint --ext .js,.ts,.json, ."
|
||||
"lint": "eslint --ext .js,.json, .",
|
||||
"test": "mocha test/**/*.spec.* --timeout 4000"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.22.9",
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"__description__": "This is here to prove that .babelrc does not get used by babel-loader. It's not used for the compilation of this project.",
|
||||
"plugins": [
|
||||
"doesnt-exist"
|
||||
]
|
||||
}
|
||||
@@ -7,14 +7,14 @@
|
||||
"prebuild": "rimraf dist",
|
||||
"build": "tsc || echo 'built, with type errors'",
|
||||
"check-ts": "tsc --noEmit",
|
||||
"dev": "tsc --watch",
|
||||
"clean": "rimraf dist",
|
||||
"cypress:open": "yarn cypress:run-cypress-in-cypress gulp open --project .",
|
||||
"cypress:run": "yarn cypress:run-cypress-in-cypress node ../../scripts/cypress run --project . --browser chrome",
|
||||
"cypress:run-cypress-in-cypress": "cross-env CYPRESS_INTERNAL_E2E_TESTING_SELF_PARENT_PROJECT=1 HTTP_PROXY_TARGET_FOR_ORIGIN_REQUESTS=http://localhost:4455 CYPRESS_REMOTE_DEBUGGING_PORT=6666 TZ=America/New_York",
|
||||
"cypress:open": "yarn cypress:run-cypress-in-cypress gulp open --project .",
|
||||
"dev": "tsc --watch",
|
||||
"lint": "eslint --ext .js,.ts,.json, .",
|
||||
"test": "yarn test-unit",
|
||||
"test-unit": "mocha -r ts-node/register/transpile-only --config ./test/.mocharc.js",
|
||||
"lint": "eslint --ext .js,.ts,.json, ."
|
||||
"test-unit": "mocha -r ts-node/register/transpile-only --config ./test/.mocharc.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"find-up": "6.3.0",
|
||||
|
||||
@@ -69,7 +69,7 @@ export class CypressCTWebpackPlugin {
|
||||
supportFile: this.supportFile,
|
||||
indexHtmlFile: this.indexHtmlFile,
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private beforeCompile = async (compilationParams: object, callback: Function) => {
|
||||
if (!this.compilation) {
|
||||
@@ -142,7 +142,7 @@ export class CypressCTWebpackPlugin {
|
||||
// Webpack 4
|
||||
compilation.hooks.normalModuleLoader.tap('CypressCTPlugin', this.addLoaderContext)
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* The plugin's entrypoint, called once by webpack when the compiler is initialized.
|
||||
|
||||
@@ -6,7 +6,9 @@
|
||||
"main": "dist",
|
||||
"scripts": {
|
||||
"build": "rimraf dist && tsc || echo 'built, with errors'",
|
||||
"check-ts": "tsc --noEmit",
|
||||
"deps": "deps-ok && dependency-check --no-dev .",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"secure": "nsp check",
|
||||
"semantic-release": "semantic-release",
|
||||
"size": "npm pack --dry",
|
||||
@@ -15,9 +17,7 @@
|
||||
"test-e2e": "mocha test/e2e/*.spec.*",
|
||||
"test-unit": "mocha test/unit/*.spec.*",
|
||||
"test-watch": "yarn test-unit & chokidar '**/*.(js|ts)' 'test/unit/*.(js|ts)' -c 'yarn test-unit'",
|
||||
"check-ts": "tsc --noEmit",
|
||||
"watch": "rimraf dist && tsc --watch",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"watch": "rimraf dist && tsc --watch"
|
||||
},
|
||||
"dependencies": {
|
||||
"bluebird": "3.7.1",
|
||||
|
||||
+15
-16
@@ -8,21 +8,21 @@
|
||||
"binary-deploy": "node ./scripts/binary.js deploy",
|
||||
"binary-deploy-linux": "./scripts/build-linux-binary.sh",
|
||||
"binary-ensure": "node ./scripts/binary.js ensure",
|
||||
"binary-package": "cross-env NODE_OPTIONS=--max_old_space_size=8192 node ./scripts/binary.js package",
|
||||
"binary-purge": "node ./scripts/binary.js purge-version",
|
||||
"binary-release": "node ./scripts/binary.js release",
|
||||
"binary-smoke-test": "node ./scripts/binary.js smoke",
|
||||
"binary-upload": "node ./scripts/binary.js upload",
|
||||
"binary-zip": "node ./scripts/binary.js zip",
|
||||
"binary-package": "cross-env NODE_OPTIONS=--max_old_space_size=8192 node ./scripts/binary.js package",
|
||||
"check-binary-on-cdn": "node ./scripts/binary.js checkIfBinaryExistsOnCdn",
|
||||
"build": "lerna run build --stream && lerna run build-cli --stream",
|
||||
"build-prod": "lerna run build-prod --stream && node ./cli/scripts/post-build.js && lerna run build-prod --stream --scope",
|
||||
"build-v8-snapshot-dev": "node --max-old-space-size=8192 tooling/v8-snapshot/scripts/setup-v8-snapshot-in-cypress.js --env=dev",
|
||||
"build-v8-snapshot-prod": "node --max-old-space-size=8192 tooling/v8-snapshot/scripts/setup-v8-snapshot-in-cypress.js",
|
||||
"check-binary-on-cdn": "node ./scripts/binary.js checkIfBinaryExistsOnCdn",
|
||||
"check-node-version": "node scripts/check-node-version.js",
|
||||
"check-terminal": "node scripts/check-terminal.js",
|
||||
"clean": "lerna run clean --no-bail || echo 'ok, errors while cleaning'",
|
||||
"check-ts": "yarn lerna run check-ts",
|
||||
"clean": "lerna run clean --no-bail || echo 'ok, errors while cleaning'",
|
||||
"clean-deps": "find . -depth -name node_modules -type d -exec rimraf {} \\;",
|
||||
"clean-untracked-files": "git clean -d -f",
|
||||
"codegen": "yarn gulp codegen",
|
||||
@@ -36,17 +36,19 @@
|
||||
"cypress:run:debug": "node ./scripts/debug.js cypress:run",
|
||||
"cypress:verify": "cypress verify --dev",
|
||||
"dev": "gulp dev",
|
||||
"dev:clean": "gulp dev:clean",
|
||||
"gulp:debug": "node --inspect-brk ./node_modules/.bin/gulp",
|
||||
"dev-debug": "node ./scripts/debug.js dev",
|
||||
"dev:clean": "gulp dev:clean",
|
||||
"docker": "./scripts/run-docker-local.sh",
|
||||
"docker-dev": "./scripts/run-docker-local.sh dev",
|
||||
"ensure-deps": "./scripts/ensure-dependencies.sh",
|
||||
"get-next-version": "node scripts/get-next-version.js",
|
||||
"gulp:debug": "node --inspect-brk ./node_modules/.bin/gulp",
|
||||
"postinstall": "node ./scripts/run-postInstall.js",
|
||||
"lint": "lerna run lint --no-bail --concurrency 2",
|
||||
"prepare-release-artifacts": "node ./scripts/prepare-release-artifacts.js",
|
||||
"npm-release": "node scripts/npm-release.js",
|
||||
"prepare": "husky install",
|
||||
"prepare-release-artifacts": "node ./scripts/prepare-release-artifacts.js",
|
||||
"pretest-e2e": "yarn ensure-deps",
|
||||
"prestart": "yarn ensure-deps",
|
||||
"start": "cypress open --dev --global",
|
||||
"stop-only": "npx stop-only --skip .cy,.publish,.projects,node_modules,dist,dist-test,fixtures,lib,bower_components,src,__snapshots__ --exclude cypress-tests.ts,*only.cy.js",
|
||||
@@ -54,25 +56,24 @@
|
||||
"pretest": "yarn ensure-deps",
|
||||
"test": "yarn lerna exec yarn test --scope cypress --scope \"'@packages/{config,data-context,electron,errors,extension,https-proxy,launcher,net-stubbing,network,packherd-require,proxy,rewriter,scaffold-config,socket,v8-snapshot-require,telemetry}'\" --scope \"'@tooling/{electron-mksnapshot,v8-snapshot}'\"",
|
||||
"test-debug": "lerna exec yarn test-debug --ignore \"'@packages/{driver,root,static,web-config}'\"",
|
||||
"pretest-e2e": "yarn ensure-deps",
|
||||
"test-integration": "lerna exec yarn test-integration --ignore \"'@packages/{driver,root,static,web-config}'\"",
|
||||
"test-mocha": "mocha --reporter spec scripts/spec.js",
|
||||
"test-npm-package-release-script": "npx lerna exec --scope \"@cypress/*\" -- npx --no-install semantic-release --dry-run",
|
||||
"test-system": "yarn workspace @tooling/system-tests test",
|
||||
"test-scripts": "mocha -r packages/ts/register --reporter spec 'scripts/unit/**/*spec.js'",
|
||||
"test-scripts-watch": "yarn test-scripts --watch --watch-extensions 'ts,js'",
|
||||
"test-system": "yarn workspace @tooling/system-tests test",
|
||||
"pretest-unit": "yarn ensure-deps",
|
||||
"test-unit": "lerna exec yarn test-unit --ignore \"'{@packages/{driver,root,static,web-config,net-stubbing,rewriter},@cypress/{webpack-dev-server,eslint-plugin-dev}}'\"",
|
||||
"pretest-watch": "yarn ensure-deps",
|
||||
"test-watch": "lerna exec yarn test-watch --ignore \"'@packages/{driver,root,static,web-config}'\"",
|
||||
"type-check": "yarn lerna exec yarn type-check --scope @tooling/system-tests && node scripts/type_check",
|
||||
"verify:mocha:results": "node ./scripts/verify-mocha-results",
|
||||
"watch": "yarn gulp watch",
|
||||
"prepare": "husky install"
|
||||
"watch": "yarn gulp watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@aws-sdk/client-s3": "3.485.0",
|
||||
"@aws-sdk/credential-providers": "3.53.0",
|
||||
"@babel/eslint-parser": "7.24.1",
|
||||
"@cypress/questions-remain": "1.0.1",
|
||||
"@cypress/request": "^3.0.0",
|
||||
"@cypress/request-promise": "^5.0.0",
|
||||
@@ -123,12 +124,11 @@
|
||||
"@types/sinon-chai": "3.2.3",
|
||||
"@types/through2": "^2.0.36",
|
||||
"@types/underscore.string": "0.0.38",
|
||||
"@typescript-eslint/eslint-plugin": "4.18.0",
|
||||
"@typescript-eslint/parser": "4.18.0",
|
||||
"@typescript-eslint/eslint-plugin": "7.2.0",
|
||||
"@typescript-eslint/parser": "7.2.0",
|
||||
"@urql/introspection": "^0.3.0",
|
||||
"ascii-table": "0.0.9",
|
||||
"autobarrel": "^1.1.0",
|
||||
"babel-eslint": "10.1.0",
|
||||
"bluebird": "3.5.3",
|
||||
"bluebird-retry": "0.11.0",
|
||||
"bytenode": "1.3.7",
|
||||
@@ -148,12 +148,12 @@
|
||||
"electron": "27.1.3",
|
||||
"electron-builder": "^23.6.0",
|
||||
"enzyme-adapter-react-16": "1.12.1",
|
||||
"eslint": "7.22.0",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-plugin-cypress": "2.11.2",
|
||||
"eslint-plugin-graphql": "4.0.0",
|
||||
"eslint-plugin-import": "2.25.4",
|
||||
"eslint-plugin-json-format": "2.0.1",
|
||||
"eslint-plugin-mocha": "8.1.0",
|
||||
"eslint-plugin-mocha": "8.2.0",
|
||||
"eslint-plugin-react": "7.22.0",
|
||||
"eslint-plugin-react-hooks": "4.2.0",
|
||||
"eslint-plugin-vue": "7.18.0",
|
||||
@@ -272,7 +272,6 @@
|
||||
"**/sharp": "0.29.3",
|
||||
"**/socket.io-parser": "4.0.5",
|
||||
"**/ua-parser-js": "0.7.33",
|
||||
"@typescript-eslint/eslint-plugin": "4.18.0",
|
||||
"browserify-sign": "4.2.2",
|
||||
"sharp": "0.29.3",
|
||||
"vue-template-compiler": "2.6.12"
|
||||
|
||||
@@ -3,21 +3,21 @@
|
||||
"version": "0.0.0-development",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"check-ts": "vue-tsc --noEmit",
|
||||
"build": "vite build",
|
||||
"check-ts": "vue-tsc --noEmit",
|
||||
"clean": "rimraf dist && echo 'cleaned'",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"test": "echo 'ok'",
|
||||
"cypress:run-cypress-in-cypress": "cross-env CYPRESS_INTERNAL_E2E_TESTING_SELF_PARENT_PROJECT=1 HTTP_PROXY_TARGET_FOR_ORIGIN_REQUESTS=http://localhost:4455 CYPRESS_REMOTE_DEBUGGING_PORT=6666 TZ=America/New_York",
|
||||
"cypress:launch": "yarn cypress:run-cypress-in-cypress gulp open --project .",
|
||||
"cypress:open": "yarn cypress:run-cypress-in-cypress gulp open --project .",
|
||||
"cypress:run-cypress-in-cypress": "cross-env CYPRESS_INTERNAL_E2E_TESTING_SELF_PARENT_PROJECT=1 HTTP_PROXY_TARGET_FOR_ORIGIN_REQUESTS=http://localhost:4455 CYPRESS_REMOTE_DEBUGGING_PORT=6666 TZ=America/New_York",
|
||||
"cypress:run:ct": "yarn cypress:run-cypress-in-cypress node ../../scripts/cypress run --component --project .",
|
||||
"cypress:run:e2e": "yarn cypress:run-cypress-in-cypress node ../../scripts/cypress run --project .",
|
||||
"cypress:run:e2e:update:snapshots": "CYPRESS_SNAPSHOT_UPDATE=1 yarn cypress:run-cypress-in-cypress node ../../scripts/cypress run --project . --spec **/*mochaEvents* --browser chrome",
|
||||
"dev": "yarn cypress:run-cypress-in-cypress gulp dev --project .",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"start": "echo \"run 'yarn dev' or 'yarn watch' from the root\" && exit 1",
|
||||
"watch": "echo \"run 'yarn dev' or 'yarn watch' from the root\" && exit 1",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"test": "echo 'ok'",
|
||||
"watch": "echo \"run 'yarn dev' or 'yarn watch' from the root\" && exit 1"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
@@ -85,4 +85,4 @@
|
||||
"@packages/graphql"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,13 +8,13 @@
|
||||
"scripts": {
|
||||
"build-prod": "tsc || echo 'built, with errors'",
|
||||
"check-ts": "tsc --noEmit",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"clean": "rimraf --glob ./src/*.js ./src/**/*.js ./src/**/**/*.js ./test/!**__fixtures__**/**/*.js || echo 'cleaned'",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"lint": "eslint --ext .js,.ts,.json, .",
|
||||
"test": "yarn test-unit",
|
||||
"test:clean": "find ./test/__fixtures__ -depth -name 'output.*' -type f -exec rm {} \\;",
|
||||
"test-debug": "yarn test-unit --inspect-brk=5566",
|
||||
"test-unit": "mocha --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json -r @packages/ts/register 'test/**/*.spec.ts' --exit --timeout 5000",
|
||||
"lint": "eslint --ext .js,.ts,.json, ."
|
||||
"test:clean": "find ./test/__fixtures__ -depth -name 'output.*' -type f -exec rm {} \\;"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.22.9",
|
||||
|
||||
@@ -8,12 +8,12 @@
|
||||
"build": "node ./scripts/build.js",
|
||||
"build-prod": "tsc || echo 'built, with errors'",
|
||||
"check-ts": "tsc --noEmit && yarn -s tslint",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"tslint": "tslint --config ../ts/tslint.json --project .",
|
||||
"clean": "rimraf --glob \"./{src,test}/**/*.js\"",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"lint": "eslint --ext .js,.ts,.json, .",
|
||||
"test": "yarn test-unit",
|
||||
"test-unit": "mocha -r @packages/ts/register --config ./test/.mocharc.js --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json",
|
||||
"lint": "eslint --ext .js,.ts,.json, ."
|
||||
"tslint": "tslint --config ../ts/tslint.json --project ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/code-frame": "7.8.3",
|
||||
|
||||
@@ -31,7 +31,7 @@ export const expectedSpecExtensions = ['.cy', '.spec', '.test', '-spec', '-test'
|
||||
type ComponentExtension = `.cy.${'js' | 'ts' | 'jsx' | 'tsx'}`
|
||||
type TemplateKey = 'e2e' | 'componentEmpty' | 'vueComponent' | 'reactComponent'
|
||||
export class SpecOptions {
|
||||
private parsedPath: ParsedPath;
|
||||
private parsedPath: ParsedPath
|
||||
|
||||
constructor (private options: CodeGenOptions) {
|
||||
this.parsedPath = path.parse(options.codeGenPath)
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
"cypress:open": "node ../../scripts/cypress open",
|
||||
"cypress:run": "node ../../scripts/cypress run",
|
||||
"postinstall": "patch-package",
|
||||
"start": "node -e 'console.log(require(`chalk`).red(`\nError:\n\tRunning \\`yarn start\\` is no longer needed for driver/cypress tests.\n\tWe now automatically spawn the server in e2e.setupNodeEvents config.\n\tChanges to the server will be watched and reloaded automatically.`))'",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"start": "node -e 'console.log(require(`chalk`).red(`\nError:\n\tRunning \\`yarn start\\` is no longer needed for driver/cypress tests.\n\tWe now automatically spawn the server in e2e.setupNodeEvents config.\n\tChanges to the server will be watched and reloaded automatically.`))'"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
"build": "node ./bin/cypress-electron --install",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"postinstall": "echo '@packages/electron needs: yarn build'",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"start": "./bin/cypress-electron",
|
||||
"test": "yarn test-unit",
|
||||
"test-debug": "yarn test-unit --inspect-brk=5566",
|
||||
"test-unit": "mocha --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json",
|
||||
"test-watch": "yarn test-unit --watch",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"test-watch": "yarn test-unit --watch"
|
||||
},
|
||||
"dependencies": {
|
||||
"@packages/icons": "0.0.0-development",
|
||||
|
||||
@@ -5,17 +5,17 @@
|
||||
"main": "index.js",
|
||||
"browser": "src/index.ts",
|
||||
"scripts": {
|
||||
"test": "yarn test-unit",
|
||||
"comparison": "node -r @packages/ts/register test/support/error-comparison-tool.ts",
|
||||
"build": "../../scripts/run-if-ci.sh tsc || echo 'type errors'",
|
||||
"build-prod": "tsc",
|
||||
"check-ts": "tsc --noEmit",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"clean": "rimraf ./src/*.js ./src/**/*.js ./src/**/**/*.js ./test/**/*.js || echo 'cleaned'",
|
||||
"pretest-unit": "yarn clean",
|
||||
"test-unit": "mocha",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"comparison": "node -r @packages/ts/register test/support/error-comparison-tool.ts",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"test": "yarn test-unit",
|
||||
"test-electron": "HTML_IMAGE_CONVERSION=1 xvfb-maybe electron --no-sandbox ./node_modules/.bin/_mocha",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"pretest-unit": "yarn clean",
|
||||
"test-unit": "mocha"
|
||||
},
|
||||
"dependencies": {
|
||||
"ansi_up": "5.0.0",
|
||||
|
||||
@@ -8,12 +8,12 @@
|
||||
"clean": "gulp clean",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"postinstall": "echo '@packages/extension needs: yarn build'",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"test": "yarn test-unit",
|
||||
"test-debug": "yarn test-unit --inspect-brk=5566",
|
||||
"test-unit": "cross-env NODE_ENV=test mocha -r @packages/ts/register --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json",
|
||||
"test-watch": "yarn test-unit --watch",
|
||||
"watch": "yarn build && chokidar 'app/**/*.*' 'app/*.*' -c 'yarn build'",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"watch": "yarn build && chokidar 'app/**/*.*' 'app/*.*' -c 'yarn build'"
|
||||
},
|
||||
"dependencies": {
|
||||
"bluebird": "3.5.3",
|
||||
|
||||
@@ -3,3 +3,4 @@
|
||||
**/package-lock.json
|
||||
**/tsconfig.json
|
||||
**/cypress/fixtures
|
||||
**/generated
|
||||
@@ -5,17 +5,17 @@
|
||||
"scripts": {
|
||||
"build": "node ./script/build.js",
|
||||
"check-ts": "vue-tsc --noEmit",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"clean": "rimraf dist ./node_modules/.vite src/*.js src/**/*.js && echo 'cleaned'",
|
||||
"test": "yarn cypress:run && yarn types",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"cypress:open": "cross-env TZ=America/New_York node ../../scripts/cypress open --component --project .",
|
||||
"cypress:run:e2e": "echo 'no e2e in frontend-shared'",
|
||||
"cypress:run:ct": "cross-env TZ=America/New_York node ../../scripts/cypress run --component --project .",
|
||||
"cypress:run:e2e": "echo 'no e2e in frontend-shared'",
|
||||
"dev": "gulp dev --project .",
|
||||
"generate-shiki-theme": "node ./script/generate-shiki-theme.js",
|
||||
"generate-stub-specs": "node ./script/generate-stub-specs.js",
|
||||
"postinstall": "patch-package",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json,.vue ."
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json,.vue .",
|
||||
"test": "yarn cypress:run && yarn types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@packages/data-context": "0.0.0-development"
|
||||
|
||||
@@ -5,17 +5,17 @@
|
||||
"main": "index.js",
|
||||
"browser": "src/index.ts",
|
||||
"scripts": {
|
||||
"nexus-build": "ts-node ./scripts/nexus-build.ts",
|
||||
"build": "graphql-codegen --config graphql-codegen.yml",
|
||||
"build-prod": "tsc || echo 'built, with errors'",
|
||||
"check-ts": "tsc --noEmit && yarn -s tslint",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"clean": "rimraf './{src,test}/**/*.js'",
|
||||
"tslint": "tslint --config ../ts/tslint.json --project .",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"postinstall": "echo '@packages/graphql needs: yarn build'",
|
||||
"test-unit": "mocha -r @packages/ts/register test/unit/**/*.spec.ts --config ./test/.mocharc.js --exit",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"nexus-build": "ts-node ./scripts/nexus-build.ts",
|
||||
"test-integration": "mocha -r @packages/ts/register test/integration/**/*.spec.ts --config ./test/.mocharc.js --exit",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"test-unit": "mocha -r @packages/ts/register test/unit/**/*.spec.ts --config ./test/.mocharc.js --exit",
|
||||
"tslint": "tslint --config ../ts/tslint.json --project ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@graphql-tools/delegate": "8.2.1",
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
"scripts": {
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"https": "node https.js",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"regenerate:certs": "cd ./test/helpers/certs && ./regenerate-certs.sh",
|
||||
"start": "node index.js",
|
||||
"test": "yarn test-unit",
|
||||
"test-debug": "yarn test-unit --inspect-brk=5566",
|
||||
"test-unit": "cross-env NODE_ENV=test mocha --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json",
|
||||
"test-watch": "cross-env NODE_ENV=test mocha --watch",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"test-watch": "cross-env NODE_ENV=test mocha --watch"
|
||||
},
|
||||
"dependencies": {
|
||||
"bluebird": "3.5.3",
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
"private": true,
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"check-ts": "tsc --noEmit",
|
||||
"build": "ts-node ./scripts/build.ts && ts-node ./scripts/ico.ts",
|
||||
"test-unit": "NODE_ENV=test mocha -r @packages/ts/register test/*.ts",
|
||||
"check-ts": "tsc --noEmit",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"test": "yarn test-unit",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"test-unit": "NODE_ENV=test mocha -r @packages/ts/register test/*.ts"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/mocha": "^8.0.3",
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
"version": "0.0.0-development",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"check-ts": "tsc --noEmit",
|
||||
"build-prod": "tsc --project .",
|
||||
"check-ts": "tsc --noEmit",
|
||||
"clean": "rimraf --glob \"lib/*.js\" && rimraf --glob \"lib/**/*.js\" || true",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"clean-js": "yarn clean",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"size": "t=\"cypress-v0.0.0.tgz\"; yarn pack --filename \"${t}\"; wc -c \"cli/${t}\"; tar tvf \"${t}\"; rm \"${t}\";",
|
||||
"test": "yarn test-unit",
|
||||
"test-unit": "mocha --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"test-unit": "mocha --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"bluebird": "3.5.3",
|
||||
|
||||
@@ -3,20 +3,20 @@
|
||||
"version": "0.0.0-development",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"check-ts": "vue-tsc --noEmit",
|
||||
"build": "vite build",
|
||||
"check-ts": "vue-tsc --noEmit",
|
||||
"clean": "rimraf dist && rimraf dist-e2e && echo 'cleaned'",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"test": "yarn cypress:run:ct && yarn types",
|
||||
"cypress:run-cypress-in-cypress": "cross-env CYPRESS_INTERNAL_E2E_TESTING_SELF_PARENT_PROJECT=1 TZ=America/New_York",
|
||||
"cypress:open": "yarn cypress:run-cypress-in-cypress gulp open --project .",
|
||||
"cypress:open:ct": "yarn cypress:run-cypress-in-cypress gulp open --component --project .",
|
||||
"cypress:run-cypress-in-cypress": "cross-env CYPRESS_INTERNAL_E2E_TESTING_SELF_PARENT_PROJECT=1 TZ=America/New_York",
|
||||
"cypress:run:ct": "yarn cypress:run-cypress-in-cypress node ../../scripts/cypress run --component --project .",
|
||||
"cypress:run:e2e": "yarn cypress:run-cypress-in-cypress node ../../scripts/cypress run --e2e --project .",
|
||||
"dev": "yarn cypress:run-cypress-in-cypress gulp dev --project .",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"start": "echo 'run yarn dev from the root' && exit 1",
|
||||
"watch": "echo 'run yarn dev from the root' && exit 1",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"test": "yarn cypress:run:ct && yarn types",
|
||||
"watch": "echo 'run yarn dev from the root' && exit 1"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
@@ -78,4 +78,4 @@
|
||||
"@packages/graphql"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
"private": true,
|
||||
"main": "./lib/server",
|
||||
"scripts": {
|
||||
"check-ts": "tsc --noEmit",
|
||||
"build-prod": "tsc --project .",
|
||||
"check-ts": "tsc --noEmit",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"test": "CYPRESS_INTERNAL_ENV=test mocha -r @packages/ts/register --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json --exit test/unit/*",
|
||||
"lint": "eslint --ext .ts,.json, ."
|
||||
"lint": "eslint --ext .ts,.json, .",
|
||||
"test": "CYPRESS_INTERNAL_ENV=test mocha -r @packages/ts/register --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json --exit test/unit/*"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/mime-types": "2.1.0",
|
||||
|
||||
@@ -36,11 +36,11 @@ export class ParsedUrl {
|
||||
this.pathMatcher = new minimatch.Minimatch(this.path ?? '')
|
||||
}
|
||||
|
||||
path: string | undefined;
|
||||
host: string;
|
||||
port: number | undefined;
|
||||
hostMatcher: minimatch.IMinimatch;
|
||||
pathMatcher: minimatch.IMinimatch;
|
||||
path: string | undefined
|
||||
host: string
|
||||
port: number | undefined
|
||||
hostMatcher: minimatch.IMinimatch
|
||||
pathMatcher: minimatch.IMinimatch
|
||||
}
|
||||
|
||||
export class UrlMatcher {
|
||||
@@ -77,11 +77,11 @@ export class UrlClientCertificates {
|
||||
this.pathnameLength = new URL(url).pathname.length
|
||||
this.clientCertificates = new ClientCertificates()
|
||||
}
|
||||
clientCertificates: ClientCertificates;
|
||||
url: string;
|
||||
subjects: string;
|
||||
pathnameLength: number;
|
||||
matchRule: ParsedUrl | undefined;
|
||||
clientCertificates: ClientCertificates
|
||||
url: string
|
||||
subjects: string
|
||||
pathnameLength: number
|
||||
matchRule: ParsedUrl | undefined
|
||||
|
||||
addSubject (subject: string) {
|
||||
if (!this.subjects) {
|
||||
@@ -97,10 +97,10 @@ export class UrlClientCertificates {
|
||||
* at https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options
|
||||
*/
|
||||
export class ClientCertificates {
|
||||
ca: Buffer[] = [];
|
||||
cert: Buffer[] = [];
|
||||
key: PemKey[] = [];
|
||||
pfx: PfxCertificate[] = [];
|
||||
ca: Buffer[] = []
|
||||
cert: Buffer[] = []
|
||||
key: PemKey[] = []
|
||||
pfx: PfxCertificate[] = []
|
||||
}
|
||||
|
||||
export class PemKey {
|
||||
@@ -109,8 +109,8 @@ export class PemKey {
|
||||
this.passphrase = passphrase
|
||||
}
|
||||
|
||||
pem: Buffer;
|
||||
passphrase: string | undefined;
|
||||
pem: Buffer
|
||||
passphrase: string | undefined
|
||||
}
|
||||
|
||||
export class PfxCertificate {
|
||||
@@ -119,12 +119,12 @@ export class PfxCertificate {
|
||||
this.passphrase = passphrase
|
||||
}
|
||||
|
||||
buf: Buffer;
|
||||
passphrase: string | undefined;
|
||||
buf: Buffer
|
||||
passphrase: string | undefined
|
||||
}
|
||||
|
||||
export class ClientCertificateStore {
|
||||
private _urlClientCertificates: UrlClientCertificates[] = [];
|
||||
private _urlClientCertificates: UrlClientCertificates[] = []
|
||||
|
||||
addClientCertificatesForUrl (cert: UrlClientCertificates) {
|
||||
debug(
|
||||
|
||||
@@ -4,15 +4,15 @@
|
||||
"private": true,
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"check-ts": "tsc --noEmit",
|
||||
"build-prod": "tsc --project .",
|
||||
"check-ts": "tsc --noEmit",
|
||||
"clean": "rimraf 'lib/**/*.js'",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"test": "yarn test-unit",
|
||||
"test-debug": "yarn test-unit --inspect-brk=5566",
|
||||
"test-unit": "mocha --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json",
|
||||
"test-watch": "yarn test-unit --watch",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"test-watch": "yarn test-unit --watch"
|
||||
},
|
||||
"dependencies": {
|
||||
"@cypress/parse-domain": "2.4.0",
|
||||
|
||||
@@ -4,15 +4,15 @@
|
||||
"private": true,
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"check-ts": "tsc --noEmit",
|
||||
"build-prod": "tsc --project .",
|
||||
"check-ts": "tsc --noEmit",
|
||||
"clean": "rimraf 'lib/**/*.js'",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"run-mocha": "mocha -r @packages/ts/register -r test/pretest.ts --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json",
|
||||
"test": "CYPRESS_INTERNAL_ENV=test yarn run-mocha \"test/integration/*.spec.ts\" \"test/unit/**/*.spec.ts\"",
|
||||
"test-integration": "CYPRESS_INTERNAL_ENV=test yarn run-mocha \"test/integration/*.spec.ts\"",
|
||||
"test-unit": "CYPRESS_INTERNAL_ENV=test yarn run-mocha \"test/unit/**/*.spec.ts\"",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"test-unit": "CYPRESS_INTERNAL_ENV=test yarn run-mocha \"test/unit/**/*.spec.ts\""
|
||||
},
|
||||
"dependencies": {
|
||||
"bluebird": "3.5.3",
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
"cypress:open": "node ../../scripts/cypress open --project .",
|
||||
"cypress:run": "node ../../scripts/cypress run --project .",
|
||||
"cypress:run:ct": "cross-env TZ=America/New_York node ../../scripts/cypress run --component --project .",
|
||||
"watch": "yarn build-for-tests --watch --progress",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"watch": "yarn build-for-tests --watch --progress"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cypress/react-tooltip": "0.5.3",
|
||||
|
||||
@@ -26,6 +26,7 @@ export default class Attempt {
|
||||
@observable _testOuterStatus?: TestState = undefined
|
||||
@observable _invocationCount: number = 0
|
||||
@observable invocationDetails?: FileDetails
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
@observable hookCount: { [name in HookName]: number } = {
|
||||
'before all': 0,
|
||||
'before each': 0,
|
||||
|
||||
@@ -23,7 +23,7 @@ class StatsStore {
|
||||
@observable _currentTime: number | null = defaults._startTime;
|
||||
[key: string]: any
|
||||
|
||||
private _interval?: IntervalID;
|
||||
private _interval?: IntervalID
|
||||
|
||||
@computed get duration () {
|
||||
if (!this._startTime) return 0
|
||||
|
||||
@@ -32,7 +32,7 @@ class AppState {
|
||||
@observable pinnedSnapshotId = defaults.pinnedSnapshotId
|
||||
@observable studioActive = defaults.studioActive
|
||||
|
||||
isStopped = false;
|
||||
isStopped = false
|
||||
_resetAutoScrollingEnabledTo = true;
|
||||
[key: string]: any
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
"private": true,
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"check-ts": "tsc --noEmit",
|
||||
"build-prod": "tsc --project .",
|
||||
"check-ts": "tsc --noEmit",
|
||||
"clean": "rimraf 'lib/**/*.js'",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
"private": true,
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"check-ts": "tsc --noEmit",
|
||||
"build-prod": "tsc --project .",
|
||||
"build-test": "yarn build-prod --noEmit",
|
||||
"check-ts": "tsc --noEmit",
|
||||
"clean": "rimraf 'lib/**/*.js'",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"test": "mocha --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"test": "mocha --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"ast-types": "0.13.3",
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
"cypress:open": "echo \"These tests have been moved to @packages/app. \" && exit 1",
|
||||
"cypress:run": "echo \"These tests have been moved to @packages/app. \" && exit 1",
|
||||
"postinstall": "echo '@packages/runner needs: yarn build'",
|
||||
"watch": "node ../../scripts/run-webpack --watch --progress",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"watch": "node ../../scripts/run-webpack --watch --progress"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-plugin-prismjs": "1.0.2",
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
"check-ts": "tsc --noEmit",
|
||||
"clean": "rimraf ./src/*.js ./src/**/*.js ./src/**/**/*.js ./test/**/*.js || echo 'cleaned'",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"test": "yarn test-unit",
|
||||
"test-unit": "mocha -r @packages/ts/register 'test/unit/**' --config ./test/.mocharc.js --exit --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"test-unit": "mocha -r @packages/ts/register 'test/unit/**' --config ./test/.mocharc.js --exit --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"compare-versions": "4.1.3",
|
||||
|
||||
@@ -10,17 +10,17 @@
|
||||
"codecov": "codecov",
|
||||
"dev": "node index.js",
|
||||
"docker": "cd ../.. && WORKING_DIR=/packages/server ./scripts/run-docker-local.sh",
|
||||
"tslint": "tslint --config ../ts/tslint.json --project .",
|
||||
"postinstall": "patch-package",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"rebuild-better-sqlite3": "electron-rebuild -o better-sqlite3",
|
||||
"repl": "node repl.js",
|
||||
"start": "node ../../scripts/cypress open --dev --global",
|
||||
"test": "node ./test/scripts/run.js",
|
||||
"test-watch": "./test/scripts/watch test",
|
||||
"test-integration": "node ./test/scripts/run.js --glob-in-dir=test/integration",
|
||||
"test-performance": "node ./test/scripts/run.js --glob-in-dir=test/performance",
|
||||
"test-unit": "node ./test/scripts/run.js --glob-in-dir=test/unit",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"test-watch": "./test/scripts/watch test",
|
||||
"tslint": "tslint --config ../ts/tslint.json --project ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/parser": "7.23.0",
|
||||
|
||||
@@ -5,15 +5,15 @@
|
||||
"browser": "lib/browser.ts",
|
||||
"scripts": {
|
||||
"build-prod": "tsc || echo 'built, with type errors' && rm lib/browser.js",
|
||||
"clean": "rimraf lib/*.js",
|
||||
"check-ts": "tsc --noEmit",
|
||||
"clean": "rimraf lib/*.js",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"postinstall": "patch-package",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"test": "yarn test-unit",
|
||||
"test-debug": "yarn test-unit --inspect-brk=5566",
|
||||
"test-unit": "cross-env NODE_ENV=test mocha -r @packages/ts/register --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json",
|
||||
"test-watch": "cross-env NODE_ENV=test mocha -r @packages/ts/register --watch",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"test-watch": "cross-env NODE_ENV=test mocha -r @packages/ts/register --watch"
|
||||
},
|
||||
"dependencies": {
|
||||
"engine.io": "6.4.2",
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
"check-ts": "tsc --noEmit",
|
||||
"clean-deps": "rimraf node_modules",
|
||||
"postinstall": "patch-package",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
||||
"test": "yarn test-unit",
|
||||
"test-unit": "node test",
|
||||
"test-watch": "echo 'no watching of tests'",
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
|
||||
"test-watch": "echo 'no watching of tests'"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": "^4.3.4",
|
||||
|
||||
@@ -10,14 +10,15 @@ system-tests/projects/no-specs/src/Invalid.jsx
|
||||
system-tests/projects/todos/tests/_fixtures/bad_js.js
|
||||
system-tests/projects/todos/tests/_fixtures/bar.js
|
||||
system-tests/projects/todos/tests/_fixtures/foo.js
|
||||
system-tests/projects/todos/tests/_fixtures/user.js
|
||||
system-tests/projects/todos/tests/_fixtures/nested/fixture.js
|
||||
system-tests/projects/todos/tests/_fixtures/no_format.js
|
||||
system-tests/projects/todos/tests/_fixtures/trailing_new_line.js
|
||||
system-tests/projects/todos/tests/_fixtures/user.js
|
||||
system-tests/projects/qwik-app/cypress-ct-bad-missing-value/*
|
||||
system-tests/projects/qwik-app/cypress-ct-bad-syntax/*
|
||||
system-tests/project-fixtures/react/src/AppCompilationError.cy.jsx
|
||||
system-tests/projects/qwik-app/cypress-ct-bad-missing-value/definition.js
|
||||
system-tests/projects/outdated-deps-vuecli3
|
||||
|
||||
# 3rd party
|
||||
system-tests/projects/e2e/static/jquery.js
|
||||
|
||||
@@ -7,15 +7,15 @@
|
||||
"browser": "lib/fixtureDirs.ts",
|
||||
"scripts": {
|
||||
"build": "node ./scripts/scaffold.js",
|
||||
"lint": "eslint . --ext .js,.ts,.jsx,.tsx",
|
||||
"type-check": "tsc --project .",
|
||||
"clean-deps": "find . -depth -name node_modules -type d -exec rimraf {} \\;",
|
||||
"lint": "eslint . --ext .js,.ts,.jsx,.tsx",
|
||||
"preprojects:yarn:install": "yarn clean-deps",
|
||||
"projects:yarn:install": "node ./scripts/projects-yarn-install.js",
|
||||
"pretest": "yarn gulp ensureCloudValidations",
|
||||
"test": "node ./scripts/run.js --glob-in-dir=\"{test,test-binary}\"",
|
||||
"pretest:ci": "yarn gulp ensureCloudValidations",
|
||||
"test:ci": "node ./scripts/run.js",
|
||||
"type-check": "tsc --project .",
|
||||
"update:snapshots": "SNAPSHOT_UPDATE=1 npm run test"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -6,5 +6,5 @@ import { Component } from '@angular/core'
|
||||
styleUrls: ['./app.component.scss'],
|
||||
})
|
||||
export class AppComponent {
|
||||
title = 'angular';
|
||||
title = 'angular'
|
||||
}
|
||||
|
||||
@@ -5,5 +5,5 @@ import { Component, Input } from '@angular/core'
|
||||
template: '<h1>{{msg}}</h1>',
|
||||
})
|
||||
export class ChildComponent {
|
||||
@Input() msg!: string;
|
||||
@Input() msg!: string
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import { CounterService } from './counter.service'
|
||||
</button>`,
|
||||
})
|
||||
export class CounterComponent {
|
||||
count$ = this.counterService.count$;
|
||||
count$ = this.counterService.count$
|
||||
|
||||
constructor (private counterService: CounterService) {}
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ import { BehaviorSubject } from 'rxjs'
|
||||
|
||||
@Injectable()
|
||||
export class CounterService {
|
||||
private count = new BehaviorSubject<number>(0);
|
||||
public count$ = this.count.asObservable();
|
||||
private count = new BehaviorSubject<number>(0)
|
||||
public count$ = this.count.asObservable()
|
||||
|
||||
public increment () {
|
||||
this.count.next(this.count.value + 1)
|
||||
|
||||
@@ -8,7 +8,7 @@ import { Component, Input } from '@angular/core'
|
||||
</div>`,
|
||||
})
|
||||
export class ErrorsComponent {
|
||||
@Input() throwError!: boolean;
|
||||
@Input() throwError!: boolean
|
||||
|
||||
syncError () {
|
||||
throw new Error('sync error')
|
||||
|
||||
@@ -5,5 +5,5 @@ import { Component } from '@angular/core'
|
||||
template: '<child-component [msg]="msg"></child-component>',
|
||||
})
|
||||
export class ParentComponent {
|
||||
msg = 'Hello World from ParentComponent';
|
||||
msg = 'Hello World from ParentComponent'
|
||||
}
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@ import { Component } from '@angular/core'
|
||||
</ul>`,
|
||||
})
|
||||
export class WithDirectivesComponent {
|
||||
show = true;
|
||||
show = true
|
||||
|
||||
items = ['breakfast', 'lunch', 'dinner'];
|
||||
items = ['breakfast', 'lunch', 'dinner']
|
||||
}
|
||||
|
||||
@@ -6,5 +6,5 @@ import { Component } from '@angular/core'
|
||||
styleUrls: ['./app.component.css'],
|
||||
})
|
||||
export class AppComponent {
|
||||
title = 'angular-cli-app';
|
||||
title = 'angular-cli-app'
|
||||
}
|
||||
|
||||
@@ -6,5 +6,5 @@ import { Component } from '@angular/core'
|
||||
styleUrls: ['./app.component.css'],
|
||||
})
|
||||
export class AppComponent {
|
||||
title = 'angular-cli-app';
|
||||
title = 'angular-cli-app'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user