nemojs-skill — Claude Code skill: tests and setup
The nemojs-skill skill generates JavaScript automation tests for Nemo.js and Selenium. Use it for browser flows such as login checks, element waits, and assertions.
MIT 209 installs ★ 393 updated 2026-10-13
npx skills add LambdaTest/agent-skills --skill nemojs-skill -a claude-codeWhat nemojs-skill does
nemojs-skill guides an agent through JavaScript tests for Nemo.js, PayPal’s Selenium-based Node.js framework. It covers Mocha test structure, Nemo startup and shutdown, browser navigation, CSS or XPath locators, visibility waits, and assertions with chai.
The examples use nemo.config.json to define the browser, Selenium endpoint, base URL, view plugin, and locator support. A local setup points to http://localhost:4444/wd/hub; tests run with npx mocha test/*.js --timeout 30000. The required packages are installed with npm install nemo nemo-view --save-dev.
For TestMu AI execution, the configuration uses LambdaTest’s remote Selenium endpoint and reads LT_USERNAME and LT_ACCESS_KEY from the environment. Cloud runs cannot authenticate when those variables are missing.
What it helps with
- generate a Nemo.js login test
- check that an element becomes visible
- locate controls with CSS, data attributes, or XPath
- run a Mocha test set
- configure local or remote Selenium execution
Example prompts for the agent
- Create a Nemo.js test for a login form that confirms the URL contains
/dashboard. - Write a Nemo test that submits invalid credentials and checks the error text.
- Set up
nemo.config.jsonfor Chrome through Selenium athttp://localhost:4444/wd/hub.
How to install nemojs-skill
1Skills CLI (Vercel)
npx skills add LambdaTest/agent-skills --skill nemojs-skill -a claude-code2Manually: put the files in place
~/.claude/skills/nemojs-skill/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/nemojs-skill/
1Skills CLI (Vercel)
npx skills add LambdaTest/agent-skills --skill nemojs-skill -a codex2Manually: put the files in place
.agents/skills/nemojs-skill/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add LambdaTest/agent-skills --skill nemojs-skill -a cursor2Manually: put the files in place
.cursor/skills/nemojs-skill/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install LambdaTest/agent-skills nemojs-skill2Manually: put the files in place
.github/skills/nemojs-skill/SKILL.md1Skills CLI (Vercel)
npx skills add LambdaTest/agent-skills --skill nemojs-skill -a gemini-cli2Platform CLI
gemini skills install https://github.com/LambdaTest/agent-skills --path nemojs-skillManually: put the files in place
.devin/skills/nemojs-skill/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add LambdaTest/agent-skills --skill nemojs-skill -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about nemojs-skill
How do I install nemojs-skill in Claude Code?
Run npx skills add LambdaTest/agent-skills --skill nemojs-skill -a claude-code, then open ~/.claude/skills/nemojs-skill/SKILL.md.
What does nemojs-skill do?
It helps generate JavaScript automation tests for Nemo.js with Mocha, Selenium, and chai. The skill covers browser actions, locators, waits, and result assertions.
What is required to run Nemo.js tests?
Install nemo and nemo-view, provide nemo.config.json, and make a Selenium server available. TestMu AI runs also require LT_USERNAME and LT_ACCESS_KEY.
Source text
SKILL.md · MIT
---
name: nemojs-skill
description: >
Generates Nemo.js automation tests in JavaScript. PayPal's Selenium-based
test framework for Node.js. Use when user mentions "Nemo.js", "nemo
automation". Triggers on: "Nemo.js", "nemo automation", "nemo test",
"PayPal test framework".
languages:
- JavaScript
category: e2e-testing
license: MIT
metadata:
author: TestMu AI
version: "1.0"
---
# Nemo.js Automation Skill
> PayPal's Selenium-based test automation framework for Node.js.
For TestMu AI cloud execution, see [reference/cloud-integration.md](reference/cloud-integration.md) and [shared/testmu-cloud-reference.md](../shared/testmu-cloud-reference.md).
## Core Patterns
### Basic Test (Mocha)
```javascript
const Nemo = require('nemo');
const { expect } = require('chai');
describe('Login Flow', function() {
this.timeout(30000);
let nemo;
before(async () => {
nemo = await Nemo();
});
after(async () => {
await nemo.driver.quit();
});
it('should login with valid credentials', async () => {
await nemo.driver.get(nemo.data.baseUrl + '/login');
const email = await nemo.view._find('#email');
await email.sendKeys('[email protected]');
const password = await nemo.view._find('#password');
await password.sendKeys('password123');
await nemo.view._find('button[type="submit"]').click();
await nemo.view._waitVisible('.dashboard', 10000);
const url = await nemo.driver.getCurrentUrl();
expect(url).to.include('/dashboard');
});
it('should show error for invalid credentials', async () => {
await nemo.driver.get(nemo.data.baseUrl + '/login');
await nemo.view._find('#email').sendKeys('[email protected]');
await nemo.view._find('#password').sendKeys('wrong');
await nemo.view._find('button[type="submit"]').click();
await nemo.view._waitVisible('.error', 5000);
const error = await nemo.view._find('.error');
const text = await error.getText();
expect(text).to.include('Invalid');
});
});
```
### View Locators
```javascript
await nemo.view._find('#css-id'); // CSS
await nemo.view._find('.class-name'); // CSS class
await nemo.view._find('[data-testid="login"]'); // Data attribute
await nemo.view._find('xpath://button[@type]'); // XPath prefix
await nemo.view._waitVisible(locator, timeout); // Wait + find
await nemo.view._finds('.items'); // Find multiple
```
### Configuration (nemo.config.json)
```json
{
"driver": {
"browser": "chrome",
"server": "http://localhost:4444/wd/hub"
},
"data": {
"baseUrl": "http://localhost:3000"
},
"view": ["locator"],
"plugins": {
"view": { "module": "nemo-view" }
}
}
```
### Cloud Execution on TestMu AI
Set environment variables: `LT_USERNAME`, `LT_ACCESS_KEY`
```json
{
"driver": {
"browser": "chrome",
"server": "https://hub.lambdatest.com/wd/hub",
"serverCaps": {
"username": "${LT_USERNAME}",
"accessKey": "${LT_ACCESS_KEY}"
},
"capabilities": {
"LT:Options": {
"user": "${LT_USERNAME}",
"accessKey": "${LT_ACCESS_KEY}",
"build": "Nemo Build",
"name": "Nemo Test",
"platformName": "Windows 11",
"video": true,
"console": true,
"network": true
}
}
}
}
```
## Setup: `npm install nemo nemo-view --save-dev`
## Run: `npx mocha test/*.js --timeout 30000`
## Deep Patterns
For advanced patterns, debugging guides, CI/CD integration, and best practices,
see `reference/playbook.md`.
© TestMu AI · MIT · LambdaTest/agent-skills