@stylable/core-test-kit
Advanced tools
Comparing version 5.6.1 to 5.7.0
@@ -10,2 +10,3 @@ export { Diagnostic, expectAnalyzeDiagnostics, expectTransformDiagnostics, findTestLocations, shouldReportNoDiagnostics, diagnosticBankReportToStrings, } from './diagnostics'; | ||
export { deindent } from './deindent'; | ||
export { MinimalDocument, MinimalElement } from './minimal-dom'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.deindent = exports.testStylableCore = exports.testInlineExpectsErrors = exports.testInlineExpects = exports.collectAst = exports.matchRuleAndDeclaration = exports.matchAllRulesAndDeclarations = exports.matchCSSMatchers = exports.flatMatch = exports.generateStylableEnvironment = exports.processSource = exports.generateStylableRoot = exports.generateStylableResult = exports.generateStylableExports = exports.generateInfra = exports.createTransformer = exports.createProcess = exports.diagnosticBankReportToStrings = exports.shouldReportNoDiagnostics = exports.findTestLocations = exports.expectTransformDiagnostics = exports.expectAnalyzeDiagnostics = void 0; | ||
exports.MinimalElement = exports.MinimalDocument = exports.deindent = exports.testStylableCore = exports.testInlineExpectsErrors = exports.testInlineExpects = exports.collectAst = exports.matchRuleAndDeclaration = exports.matchAllRulesAndDeclarations = exports.matchCSSMatchers = exports.flatMatch = exports.generateStylableEnvironment = exports.processSource = exports.generateStylableRoot = exports.generateStylableResult = exports.generateStylableExports = exports.generateInfra = exports.createTransformer = exports.createProcess = exports.diagnosticBankReportToStrings = exports.shouldReportNoDiagnostics = exports.findTestLocations = exports.expectTransformDiagnostics = exports.expectAnalyzeDiagnostics = void 0; | ||
var diagnostics_1 = require("./diagnostics"); | ||
@@ -35,2 +35,5 @@ Object.defineProperty(exports, "expectAnalyzeDiagnostics", { enumerable: true, get: function () { return diagnostics_1.expectAnalyzeDiagnostics; } }); | ||
Object.defineProperty(exports, "deindent", { enumerable: true, get: function () { return deindent_1.deindent; } }); | ||
var minimal_dom_1 = require("./minimal-dom"); | ||
Object.defineProperty(exports, "MinimalDocument", { enumerable: true, get: function () { return minimal_dom_1.MinimalDocument; } }); | ||
Object.defineProperty(exports, "MinimalElement", { enumerable: true, get: function () { return minimal_dom_1.MinimalElement; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,3 @@ | ||
export declare function flatMatch(chai: Chai.ChaiStatic, util: Chai.ChaiUtils): void; | ||
/// <reference types="chai" /> | ||
export declare const flatMatch: Chai.ChaiPlugin; | ||
//# sourceMappingURL=flat-match.d.ts.map |
"use strict"; | ||
// eslint-disable-next-line @typescript-eslint/triple-slash-reference | ||
/// <reference types="chai" /> | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -9,3 +11,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
const flat_1 = __importDefault(require("flat")); | ||
function flatMatch(chai, util) { | ||
const flatMatch = (chai, util) => { | ||
const { flag } = util; | ||
@@ -15,4 +17,4 @@ chai.Assertion.addMethod('flatMatch', function (obj, maxDepth = 5) { | ||
}); | ||
} | ||
}; | ||
exports.flatMatch = flatMatch; | ||
//# sourceMappingURL=flat-match.js.map |
@@ -1,2 +0,3 @@ | ||
export declare function matchCSSMatchers(chai: Chai.ChaiStatic, util: Chai.ChaiUtils): void; | ||
/// <reference types="chai" /> | ||
export declare const matchCSSMatchers: Chai.ChaiPlugin; | ||
//# sourceMappingURL=match-css.d.ts.map |
"use strict"; | ||
// eslint-disable-next-line @typescript-eslint/triple-slash-reference | ||
/// <reference types="chai" /> | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.matchCSSMatchers = void 0; | ||
const chai_1 = require("chai"); | ||
function matchCSSMatchers(chai, util) { | ||
const matchCSSMatchers = (chai, util) => { | ||
const { flag } = util; | ||
@@ -19,4 +21,4 @@ chai.Assertion.addMethod('matchCSS', function (css) { | ||
}); | ||
} | ||
}; | ||
exports.matchCSSMatchers = matchCSSMatchers; | ||
//# sourceMappingURL=match-css.js.map |
{ | ||
"name": "@stylable/core-test-kit", | ||
"version": "5.6.1", | ||
"version": "5.7.0", | ||
"description": "Stylable core test-kit", | ||
@@ -10,7 +10,7 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@file-services/memory": "^7.2.0", | ||
"@stylable/core": "^5.6.1", | ||
"@file-services/memory": "^7.2.3", | ||
"@stylable/core": "^5.7.0", | ||
"chai": "^4.3.7", | ||
"flat": "^5.0.2", | ||
"postcss": "^8.4.20" | ||
"postcss": "^8.4.21" | ||
}, | ||
@@ -17,0 +17,0 @@ "files": [ |
@@ -30,1 +30,2 @@ export { | ||
export { deindent } from './deindent'; | ||
export { MinimalDocument, MinimalElement } from './minimal-dom'; |
@@ -0,5 +1,8 @@ | ||
// eslint-disable-next-line @typescript-eslint/triple-slash-reference | ||
/// <reference types="chai" /> | ||
import { expect } from 'chai'; | ||
import flatten from 'flat'; | ||
export function flatMatch(chai: Chai.ChaiStatic, util: Chai.ChaiUtils) { | ||
export const flatMatch: Chai.ChaiPlugin = (chai, util) => { | ||
const { flag } = util; | ||
@@ -9,2 +12,2 @@ chai.Assertion.addMethod('flatMatch', function (obj: Record<string, unknown>, maxDepth = 5) { | ||
}); | ||
} | ||
}; |
@@ -0,4 +1,7 @@ | ||
// eslint-disable-next-line @typescript-eslint/triple-slash-reference | ||
/// <reference types="chai" /> | ||
import { expect } from 'chai'; | ||
export function matchCSSMatchers(chai: Chai.ChaiStatic, util: Chai.ChaiUtils) { | ||
export const matchCSSMatchers: Chai.ChaiPlugin = (chai, util) => { | ||
const { flag } = util; | ||
@@ -17,2 +20,2 @@ chai.Assertion.addMethod('matchCSS', function (css: string | string[]) { | ||
}); | ||
} | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
171841
58
2801
Updated@file-services/memory@^7.2.3
Updated@stylable/core@^5.7.0
Updatedpostcss@^8.4.21