New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tsarch

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsarch

An architecture unit test framework for Typescript

  • 4.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12K
increased by3.43%
Maintainers
1
Weekly downloads
 
Created
Source

TSArch

An architecture unit test framework for Typescript

Build status

Travis

Usage

npm install --save-dev tsarch

import {TSArch} from 'tsarch'
import 'tsarch/dist/jest'

describe('Architecture', () => {

  it('defines that all files in dog folder should be called ...Dog.ts', async () => {

    const project = await TSArch.parseTypescriptProject('./src')

    const rule = TSArch.defineThat()
      .files()
      .withPathMatching(/.*dog.*/)
      .should()
      .matchName(/.+.Dog\.ts($|\n)/)
      .build()

    expect(project).toPass(rule)

  })

})

Credits

Typescript Library Starter

Made with :heart: by @alexjoverm and all these wonderful contributors (emoji key):


Ciro

💻 🔧

Marius Schulz

📖

Alexander Odell

📖

Ryan Ham

💻

Chi

💻 🔧 📖

Matt Mazzola

💻 🔧

Sergii Lischuk

💻

Steve Lee

🔧

Flavio Corpa

💻

Dom

🔧

Alex Coles

📖

David Khourshid

🔧

Aarón García Hervás

📖

Jonathan Hart

💻

Sanjiv Lobo

📖

Stefan Aleksovski

💻

dev.peerapong

💻

Aaron Groome

📖

Aaron Reisman

💻

kid-sk

📖

Andrea Gottardi

📖

Yogendra Sharma

📖

Rayan Salhab

💻

This project follows the all-contributors specification. Contributions of any kind are welcome!

FAQs

Package last updated on 14 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc