Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .claude/skills/verify/skill.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: verify
description: Run lint and tests to verify changes. Use when user says /verify, check my changes, validate changes, run checks, verify everything passes, pre-commit check, ready to commit, does it pass, CI check, sanity check
---

# Verify Skill - mParticle Web SDK

Run the full lint and test battery to verify the current state of the codebase.

## Steps

1. Run lint first:

```bash
npm run lint
```

2. If lint passes, run both test suites in parallel. Each suite handles its own build internally.

```bash
npm run test:jest
```
Comment thread
cursor[bot] marked this conversation as resolved.

```bash
npm run test
```
Comment thread
cursor[bot] marked this conversation as resolved.

3. Report results in this format:

| Check | Status |
|-------------|--------|
| Lint | PASS / FAIL |
| Jest Tests | PASS / FAIL |
| Karma Tests | PASS / FAIL |

4. If any check fails, show the relevant error output so the user can diagnose and fix the issue.
4 changes: 4 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,10 @@ Core modules receive `mpInstance` as a parameter, allowing them to access other
4. **Inspect Storage**: Check Application tab for LocalStorage/Cookies
5. **Use Source Maps**: Dev builds include source maps

### Available Skills

- **`/verify`**: Run lint, build, and Jest tests to validate your changes before committing. Use this after making code changes to ensure nothing is broken. See `.claude/skills/verify/skill.md`.

### Additional Resources

- **Documentation**: https://docs.mparticle.com/developers/sdk/web/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"test:karma:rollup:cjs": "cross-env BUNDLER=rollup karma start test/integrations/cjs/karma.rollup.config.js",
"test:karma:webpack:module": "cross-env BUNDLER=webpack karma start test/integrations/module/karma.webpack.config.js",
"test:karma:rollup:module": "cross-env BUNDLER=rollup karma start test/integrations/module/karma.rollup.config.js",
"test:jest": "npm run build && jest --config jest.config.js",
"test:jest": "jest --config jest.config.js",
Comment thread
alexs-mparticle marked this conversation as resolved.
"test:jest:watch": "jest --config jest.config.js --watch",
"watch": "cross-env ENVIRONMENT=dev BUILD=iife rollup --config rollup.config.js -w",
"watch:all": "cross-env ENVIRONMENT=prod BUILDALL=true rollup --config rollup.config.js -w",
Expand Down
Loading