Skip to content

shelldandy/mocha-shopify-lint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ATTENTION

Not really working because theme-lint is actually not really linting all the theme files as of right now, just the translation ones.

😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢

mocha-shopify-lint

Runs theme-lint as mocha tests.

Install

$ npm install mocha-shopify-lint --save-dev

Usage

Syntax:

mochaShopifyLint(patters)

Where patterns is an array of glob patterns.

Example:

shopify-lint.spec.js

const mochaShopifyLint = require('mocha-shopify-lint')
mochaShopifyLint(['./test/files/**/*.liquid'])