Git Product home page Git Product logo

jest-decorated's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar greenkeeper[bot] avatar vitalishapovalov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jest-decorated's Issues

Annotations are not defined after updating to 0.1.1

Screenshot 2021-11-01 at 11 21 40

in my jest config

    setupFilesAfterEnv: [
        './jest.setup.js'
        , "@jest-decorated/core/globals"
    ],

in my setup.ts

import "@jest-decorated/core/globals";

module.exports = async function () {
};

other dependencies

  "dependencies": {
    "@babel/core": "^7.11.1",
    "@babel/preset-env": "^7.11.0",
    "@babel/preset-typescript": "^7.10.4",
    "@jest-decorated/core": "^0.1.1",
    "@types/jest": "^27.0.2",
    "@types/node": "^14.0.23",
    "axios": "^0.21.1",
    "babel-jest": "^27.3.1",
    "expect-playwright": "^0.2.5",
    "jest": "^27.3.1",
    "jest-allure": "^0.1.3",
    "jest-circus": "^27.3.1",
    "jest-circus-allure-environment": "^0.13.3",
    "playwright": "^1.16.2"
  },

Is there a way to make it run the constructor?

Hey πŸ‘‹

I would like to share a test suite so that I do not need to create the same one with different dependencies, but it does not seem to be 'possible' since it does not run the constructor.

The base class that contains the tests
image

Using inheritance:

export class CreateTaskShould extends BaseCreateTask {
  public constructor() {
    const fakeRepo = new FakeTaskRepository()
    const db = new TestDatabaseClient(fakeRepo)
    super(db, fakeRepo)
  }
}

results in dependencies being undefined because the constructor is never ran. Now another solution would have been to make "BaseCreateTask" abstract but then the decorators won't work.

TypeScript compiler errors when importing the module

Hi,

When trying to import the module like this:

import { BeforeAll, AfterAll } from "@jest-decorated/core";

I'm getting the following error:

Could not find a declaration file for module '@jest-decorated/core'. '/workspace/node_modules/@jest-decorated/core/dist/index.umd.js' implicitly has an 'any' type.

Importing into global scope, i.e.

import "@jest-decorated/core/globals";

works fine, but I'd like to keep the global scope as clean as possible.

@jest-decorated/core version: 0.0.19
TypeScript version: 4.1.3
tsconfig:

{
    "compilerOptions": {
        "strict": true,
        "experimentalDecorators": true,
        "emitDecoratorMetadata": true,
        "target": "ES6",
        "moduleResolution": "node"
    },
    "include": [
        "src/**/*"
    ]
}

Could you please advise? Thanks.

An in-range update of @testing-library/jest-dom is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye πŸ‘‹ and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


The devDependency @testing-library/jest-dom was updated from 5.4.0 to 5.5.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@testing-library/jest-dom is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ build (macos-latest, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • βœ… build (macos-latest, 10.x): null
  • βœ… build (macos-latest, 8.x): null
  • βœ… build (ubuntu-18.04, 12.x): null
  • βœ… build (ubuntu-18.04, 10.x): null
  • βœ… build (ubuntu-18.04, 8.x): null
  • βœ… build (ubuntu-16.04, 12.x): null
  • βœ… build (ubuntu-16.04, 10.x): null
  • βœ… build (ubuntu-16.04, 8.x): null

Release Notes for v5.5.0

5.5.0 (2020-04-09)

Features

Commits

The new version differs by 3 commits.

  • 025c81d docs: add cloud-walker as a contributor (#231)
  • 840414f feat: Add toHaveDisplayValue() matcher (#223)
  • 779448f docs: add jonrimmer as a contributor (#229)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.