All Projects → ktsn → svelte-jest

ktsn / svelte-jest

Licence: MIT license
Jest Svelte component transformer

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to svelte-jest

TransBTS
This repo provides the official code for : 1) TransBTS: Multimodal Brain Tumor Segmentation Using Transformer (https://arxiv.org/abs/2103.04430) , accepted by MICCAI2021. 2) TransBTSV2: Towards Better and More Efficient Volumetric Segmentation of Medical Images(https://arxiv.org/abs/2201.12785).
Stars: ✭ 254 (+586.49%)
Mutual labels:  transformer
VideoTransformer-pytorch
PyTorch implementation of a collections of scalable Video Transformer Benchmarks.
Stars: ✭ 159 (+329.73%)
Mutual labels:  transformer
TabFormer
Code & Data for "Tabular Transformers for Modeling Multivariate Time Series" (ICASSP, 2021)
Stars: ✭ 209 (+464.86%)
Mutual labels:  transformer
sparql-transformer
A more handy way to use SPARQL data in your web app
Stars: ✭ 38 (+2.7%)
Mutual labels:  transformer
Transformer Temporal Tagger
Code and data form the paper BERT Got a Date: Introducing Transformers to Temporal Tagging
Stars: ✭ 55 (+48.65%)
Mutual labels:  transformer
dingo-serializer-switch
A middleware to switch fractal serializers in dingo
Stars: ✭ 49 (+32.43%)
Mutual labels:  transformer
cape
Continuous Augmented Positional Embeddings (CAPE) implementation for PyTorch
Stars: ✭ 29 (-21.62%)
Mutual labels:  transformer
transformer
A simple TensorFlow implementation of the Transformer
Stars: ✭ 25 (-32.43%)
Mutual labels:  transformer
transformer-ls
Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).
Stars: ✭ 201 (+443.24%)
Mutual labels:  transformer
catr
Image Captioning Using Transformer
Stars: ✭ 206 (+456.76%)
Mutual labels:  transformer
TokenLabeling
Pytorch implementation of "All Tokens Matter: Token Labeling for Training Better Vision Transformers"
Stars: ✭ 385 (+940.54%)
Mutual labels:  transformer
Variational-Transformer
Variational Transformers for Diverse Response Generation
Stars: ✭ 79 (+113.51%)
Mutual labels:  transformer
text simplification
Text Simplification Model based on Encoder-Decoder (includes Transformer and Seq2Seq) model.
Stars: ✭ 66 (+78.38%)
Mutual labels:  transformer
sister
SImple SenTence EmbeddeR
Stars: ✭ 66 (+78.38%)
Mutual labels:  transformer
imdb-transformer
A simple Neural Network for sentiment analysis, embedding sentences using a Transformer network.
Stars: ✭ 26 (-29.73%)
Mutual labels:  transformer
kaggle-champs
Code for the CHAMPS Predicting Molecular Properties Kaggle competition
Stars: ✭ 49 (+32.43%)
Mutual labels:  transformer
Neural-Scam-Artist
Web Scraping, Document Deduplication & GPT-2 Fine-tuning with a newly created scam dataset.
Stars: ✭ 18 (-51.35%)
Mutual labels:  transformer
alpr utils
ALPR model in unconstrained scenarios for Chinese license plates
Stars: ✭ 158 (+327.03%)
Mutual labels:  transformer
YaEtl
Yet Another ETL in PHP
Stars: ✭ 60 (+62.16%)
Mutual labels:  transformer
Video-Action-Transformer-Network-Pytorch-
Implementation of the paper Video Action Transformer Network
Stars: ✭ 126 (+240.54%)
Mutual labels:  transformer

svelte-jest

Build Status svelte-jest Dev Token

Jest Svelte component transformer.

Usage

Install it via npm:

$ npm install -D svelte-jest

Add Jest configuration:

{
  "jest": {
    "transform": {
      "\\.js$": "babel-jest",
      "\\.svelte$": "svelte-jest"
    },
    "moduleFileExtensions": [
      "js",
      "json",
      "svelte"
    ]
  }
}

Then you import your Svelte component in your test code:

import Foo from '../components/Foo.svelte'

describe('Foo Component', () => {
  it('should render', () => {
    const el = document.createElement('div')
    new Foo({
      target: el
    })
    expect(el.textContent).toBe('Hello Foo!')
  })
})

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].