Skip to content

Commit

Permalink
Remove babel.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed May 6, 2020
1 parent 74625b4 commit 271a9c6
Show file tree
Hide file tree
Showing 168 changed files with 1,261 additions and 1,842 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Expand Up @@ -33,9 +33,6 @@ jobs:
- name: Lint
run: npm run lint

- name: Build
run: npm run build

- name: Run jest tests
run: npm run jest -- --runInBand
if: "!(startsWith(matrix.os, 'ubuntu') && matrix.node == 10)"
Expand Down
1 change: 0 additions & 1 deletion .gitignore
@@ -1,4 +1,3 @@
node_modules
dist
*.log
.coverage
133 changes: 0 additions & 133 deletions babel-jest.js

This file was deleted.

10 changes: 5 additions & 5 deletions jest-setup.js
@@ -1,7 +1,7 @@
"use strict"; // eslint-disable-line strict
"use strict";

const _ = require("lodash");
const stylelint = require("stylelint");
const { get } = require("lodash");

global.testRule = (rule, schema) => {
expect.extend({
Expand Down Expand Up @@ -82,15 +82,15 @@ global.testRule = (rule, schema) => {
// expect(testCase).toHaveMessage();

if (testCase.message !== undefined) {
expect(_.get(warning, "text")).toBe(testCase.message);
expect(get(warning, "text")).toBe(testCase.message);
}

if (testCase.line !== undefined) {
expect(_.get(warning, "line")).toBe(testCase.line);
expect(get(warning, "line")).toBe(testCase.line);
}

if (testCase.column !== undefined) {
expect(_.get(warning, "column")).toBe(testCase.column);
expect(get(warning, "column")).toBe(testCase.column);
}

if (!schema.fix) {
Expand Down

0 comments on commit 271a9c6

Please sign in to comment.