Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tsify asm-docs-tests to typescript with utils #4670

Merged
merged 1 commit into from
Jan 31, 2023
Merged

Conversation

junlarsen
Copy link
Member

Adds the final few bits needed in tsconfig to properly run the chai-http test infrastructure as well as turning the asm docs tests into ts

Copy link
Member

@jeremy-rifkin jeremy-rifkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me


import {CompilationEnvironment} from '../lib/compilation-env';
import {CompilationQueue} from '../lib/compilation-queue';
import {CompilerProps, fakeProps} from '../lib/properties';

export function makeCompilationEnvironment(options) {
// TODO: Find proper type for options
export function makeCompilationEnvironment(options: Record<string, any>): CompilationEnvironment {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be https://github.com/compiler-explorer/compiler-explorer/blob/main/lib/options-handler.ts#L58 but we can clean up the types here in a future PR

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't seem like it since we're asking .props, .concurrency, and .queue, all of which don't really make sense on the ce options

@jeremy-rifkin jeremy-rifkin self-requested a review January 31, 2023 20:58
@junlarsen junlarsen merged commit 39b81c9 into main Jan 31, 2023
@junlarsen junlarsen deleted the sg/ts/test-asm-docs branch January 31, 2023 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants