Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mands/nx-playwright

Package Overview
Dependencies
Maintainers
5
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mands/nx-playwright - npm Package Compare versions

Comparing version 0.0.18 to 0.1.0

2

package.json
{
"name": "@mands/nx-playwright",
"version": "0.0.18",
"version": "0.1.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "publishConfig": {

@@ -32,2 +32,12 @@ "use strict";

},
'ts-check': {
executor: '@nrwl/workspace:run-commands',
options: {
commands: [
{
command: `yarn tsc --build apps/${options.project}/tsconfig.json`,
},
],
},
},
},

@@ -34,0 +44,0 @@ tags: normalizedOptions.parsedTags,

@@ -0,5 +1,55 @@

import type { Tree } from '@nrwl/devkit';
import { Linter } from '@nrwl/linter';
import { FsTree } from 'nx/src/generators/tree';
import generator from './generator';
describe('nx-playwright generator', () => {
it('noop', async () => {
expect(true).toBe(true);
it('generates correct project.json', async () => {
const host: Tree = new FsTree('.', true);
const generate = await generator(host, {
name: 'test-generator',
linter: Linter.EsLint,
project: 'test-project',
});
await generate();
const projectJsonString = host.read('e2e/test-generator/project.json').toString();
const projectJson = JSON.parse(projectJsonString);
expect(projectJson).toEqual({
$schema: '../../node_modules/nx/schemas/project-schema.json',
sourceRoot: 'e2e/test-generator/src',
projectType: 'application',
targets: {
e2e: {
executor: '@mands/nx-playwright:playwright-executor',
options: {
e2eFolder: 'e2e/test-generator',
devServerTarget: 'test-project:serve',
},
configurations: {
production: {
devServerTarget: 'test-project:serve:production',
},
},
},
'ts-check': {
executor: '@nrwl/workspace:run-commands',
options: {
commands: [
{
command: `yarn tsc --build apps/test-project/tsconfig.json`,
},
],
},
},
lint: {
executor: '@nrwl/linter:eslint',
outputs: ['{options.outputFile}'],
options: { lintFilePatterns: ['e2e/test-generator/**/*.{ts,tsx,js,jsx}'] },
},
},
tags: [],
implicitDependencies: ['test-project'],
});
});
});

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc