File tree Expand file tree Collapse file tree 3 files changed +12
-95
lines changed
packages/ansible-language-server/test Expand file tree Collapse file tree 3 files changed +12
-95
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- import * as chai from "chai" ;
2- import { ConsoleOutput } from "./consoleOutput" ;
3- import { skipEE , console , deleteAlsCache } from "./helper" ;
4-
5- chai . config . truncateThreshold = 0 ; // disable truncating
1+ import { deleteAlsCache } from "./helper" ;
62
73export const mochaHooks = ( ) : Mocha . RootHookObject => {
8- const consoleOutput = new ConsoleOutput ( ) ;
94
105 return {
116 beforeAll ( this : Mocha . Context ) {
127 deleteAlsCache ( ) ;
138 } ,
14- beforeEach ( this : Mocha . Context ) {
15- if ( skipEE ( ) && this . currentTest ?. fullTitle ( ) . includes ( "@ee" ) ) {
16- console . warn (
17- `Skipped test due to environment conditions: ${ this . currentTest . title } ` ,
18- ) ;
19- this . skip ( ) ;
20- } else {
21- consoleOutput . capture ( ) ;
22- }
23- } ,
24-
25- afterEach ( this : Mocha . Context ) {
26- if ( ! ( skipEE ( ) && this . currentTest ?. fullTitle ( ) . includes ( "@ee" ) ) ) {
27- if ( this . currentTest ?. state !== "passed" ) {
28- consoleOutput . release ( ) ;
29- }
30- }
31- } ,
32- afterAll ( this : Mocha . Context ) {
33- deleteAlsCache ( ) ;
34- } ,
9+ // beforeEach(this: Mocha.Context) {
10+ // if (skipEE() && this.currentTest?.fullTitle().includes("@ee")) {
11+ // console.warn(
12+ // `Skipped test due to environment conditions: ${this.currentTest.title}`,
13+ // );
14+ // this.skip();
15+ // }
16+ // },
17+ // afterAll(this: Mocha.Context) {
18+ // deleteAlsCache();
19+ // },
3520 } ;
3621} ;
Original file line number Diff line number Diff line change 1515 " src/**/*.ts" ,
1616 " webviews/lightspeed/src/utils/*.ts" ,
1717 " test" ,
18- " packages/*/test/consoleOutput.ts" ,
1918 " *.js" ,
2019 " *.ts"
2120 ],
You can’t perform that action at this time.
0 commit comments