Skip to content

Typescript tests failing #7885

Closed
Closed

Description

Issue seems to be here:

public test2: Color = 0,

Test logs:

my-game/example/vec3.ts(121,3): error TS2322: Type '0' is not assignable to type 'Color'.
Removing node_modules/ directory...
Invoking flatc on schema ../monster_test.fbs
Invoking flatc on schema ../monster_test.fbs
Invoking flatc on schema ../union_vector/union_vector.fbs
Invoking flatc on schema ../optional_scalars.fbs
Invoking flatc on schema ../optional_scalars.fbs
Invoking flatc on schema arrays_test_complex/arrays_test_complex.fbs
Invoking flatc on schema ['typescript_keywords.fbs', 'test_dir/typescript_include.fbs', 'test_dir/typescript_transitive_include.fbs', '../../reflection/reflection.fbs']
Running TypeScript Compiler...
Traceback (most recent call last):
  File "/home/runner/work/flatbuffers/flatbuffers/tests/ts/TypeScriptTest.py", line 121, in <module>
    check_call(["tsc"])
  File "/home/runner/work/flatbuffers/flatbuffers/tests/ts/TypeScriptTest.py", line 43, in check_call
    subprocess.check_call(args, cwd=str(cwd), shell=is_windows)
  File "/usr/lib/python3.10/subprocess.py", line 3[69](https://github.com/google/flatbuffers/actions/runs/4556364067/jobs/8036626689#step:6:70), in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['tsc']' returned non-zero exit status 2.
Error: Process completed with exit code 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions