Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UPDATE_MAP={"ubuntu-24.04":"blacksmith-4vcpu-ubuntu-2204"}
2 changes: 1 addition & 1 deletion src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ type Schema = Static<typeof schema>;
export const env = envSchema<Schema>({
schema,
dotenv: {
path: join(dirname(__dirname), '.env'),
path: join(dirname(__dirname), isTest ? '.env.test' : '.env'),
},
});
4 changes: 0 additions & 4 deletions test/automa.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ import { assert } from 'chai';
import sinon, { SinonStub } from 'sinon';
import { CodeFolder, generateWebhookSignature } from '@automa/bot';

/* eslint-disable import/first */
// Testing environment variables
process.env.UPDATE_MAP = '{"ubuntu-24.04":"blacksmith-4vcpu-ubuntu-2204"}';

import { env } from '../src/env';

import { automa } from '../src/clients';
Expand Down
4 changes: 0 additions & 4 deletions test/update.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
import { assert } from 'chai';
import { $ } from 'zx';

/* eslint-disable import/first */
// Testing environment variables
process.env.UPDATE_MAP = '{"ubuntu-24.04":"blacksmith-4vcpu-ubuntu-2204"}';

import { update } from '../src/update';
import { Config } from '../src/update/utils';

Expand Down Expand Up @@ -56,7 +52,7 @@
});
});

test.skip('should update anchors', async () => {

Check warning on line 55 in test/update.test.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected skipped mocha test

Check warning on line 55 in test/update.test.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected skipped mocha test
// Github Actions does not support anchors and aliases in YAML
});
});
Expand Down
Loading