Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Enlcxx committed Dec 24, 2022
1 parent a698449 commit 5d8e101
Show file tree
Hide file tree
Showing 7 changed files with 409 additions and 505 deletions.
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"@types/semver": "^6.2.0",
"@types/showdown": "^1.9.2",
"@types/yargs": "^13.0.0",
"ava": "^3.11.1",
"ava": "^5.1.0",
"bundlesize": "^0.17.0",
"camelcase": "^5.0.0",
"chalk": "^2.4.1",
Expand Down Expand Up @@ -120,15 +120,18 @@
"extensions": [
"ts"
],
"nodeArguments": [ ],
"require": [
"ts-node/register",
"tsconfig-paths/register"
],
"files": [
"src/**/*.test.ts",
"tools/**/*.test.ts"
"src/**/*.test.ts"
],
"failFast": true,
"failWithoutAssertions": false
"failWithoutAssertions": false,
"environmentVariables": {
"TS_NODE_COMPILER_OPTIONS": "{\"module\": \"commonjs\"}"
}
}
}
4 changes: 2 additions & 2 deletions src/lib/schematics/ng-add/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { SchematicTestRunner } from '@angular-devkit/schematics/testing';
import { createTestApp } from '@alyle/ui/schematics/testing';
import * as path from 'path';

import anyTest, { TestInterface } from 'ava';
import anyTest, { TestFn } from 'ava';
import { Schema } from './schema';

const test = anyTest as TestInterface<Context>;
const test = anyTest as TestFn<Context>;

const collectionPath = path.join(__dirname, '../collection.json');

Expand Down
2 changes: 1 addition & 1 deletion src/lib/schematics/ng-add/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { addPackageToPackageJson, getPackageVersionFromPackageJson } from '../ut

const AUI_VERSION = '13.3.0';
const HAMMERJS_VERSION = '^2.0.8';
const ANGULAR_CDK_VERSION = '^13.2.5';
const ANGULAR_CDK_VERSION = '^13.3.9';


export default function (options: Schema): Rule {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/src/parse.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import anyTest, { TestInterface } from 'ava';
import anyTest, { TestFn } from 'ava';
import { StyleCollection, lyl, resolveSelectors } from './parse';
import { mergeThemes } from './style-utils';

const test = anyTest as TestInterface<Context>;
const test = anyTest as TestFn<Context>;

class Context { }

Expand Down
4 changes: 2 additions & 2 deletions src/lib/src/style-utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import anyTest, { TestInterface } from 'ava';
import anyTest, { TestFn } from 'ava';
import { eachMedia, MediaQueryArrayDeprecated, parseMediaQueriesFromString, parseMediaQueryFromString } from './style-utils';

const test = anyTest as TestInterface<Context>;
const test = anyTest as TestFn<Context>;

class Context { }

Expand Down
4 changes: 2 additions & 2 deletions src/lib/style-compiler/compiler.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import anyTest, { TestInterface } from 'ava';
import anyTest, { TestFn } from 'ava';
import { hasLylStyle, styleCompiler } from './compiler';
import { st2c, StyleCollection, lyl } from '../src/parse';
import * as tsNode from 'ts-node';

const test = anyTest as TestInterface<Context>;
const test = anyTest as TestFn<Context>;

class Context {
style = `
Expand Down
Loading

0 comments on commit 5d8e101

Please sign in to comment.